]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/interaction.cpp
Custom lock for interaction
[vlc] / modules / gui / qt4 / dialogs / interaction.cpp
index 65b3863eae0c5ecc2400660469ecc55e7698186e..85004913e563b59d9b21820e9cdc2b50535df17e 100644 (file)
@@ -240,7 +240,7 @@ void InteractionDialog::otherB()
 
 void InteractionDialog::Finish( int i_ret )
 {
-    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
+    vlc_mutex_lock( p_dialog->p_lock );
 
     /* Special cases when we have to return psz to the core */
     if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
@@ -262,7 +262,8 @@ void InteractionDialog::Finish( int i_ret )
         p_dialog->i_flags & DIALOG_INTF_PROGRESS )
         p_dialog->b_cancelled = true;
 
+    vlc_mutex_unlock( p_dialog->p_lock );
+
     hide();
-    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
 }