Fix no
authorClément Stenac <zorglub@videolan.org>
Wed, 14 Dec 2005 19:10:46 +0000 (19:10 +0000)
committerClément Stenac <zorglub@videolan.org>
Wed, 14 Dec 2005 19:10:46 +0000 (19:10 +0000)
modules/gui/wxwidgets/dialogs/interaction.cpp
src/interface/interaction.c

index 45aad02..b2b6acd 100644 (file)
@@ -46,7 +46,7 @@ BEGIN_EVENT_TABLE( InteractionDialog, wxFrame )
     EVT_BUTTON( wxID_OK, InteractionDialog::OnOkYes )
     EVT_BUTTON( wxID_YES, InteractionDialog::OnOkYes )
     EVT_BUTTON( wxID_CANCEL, InteractionDialog::OnCancel)
-    EVT_BUTTON( No_Event, InteractionDialog::OnNo )
+    EVT_BUTTON( wxID_NO, InteractionDialog::OnNo )
     EVT_BUTTON( wxID_CLEAR, InteractionDialog::OnClear )
     EVT_CHECKBOX( NoShow_Event, InteractionDialog::OnNoShow )
 END_EVENT_TABLE()
index b08ad76..07c5639 100644 (file)
@@ -376,7 +376,11 @@ void __intf_UserProgressUpdate( vlc_object_t *p_this, int i_id,
     vlc_mutex_lock( &p_interaction->object_lock );
     p_dialog  =  intf_InteractionGetById( p_this, i_id );
 
-    if( !p_dialog ) return;
+    if( !p_dialog )
+    {
+        vlc_mutex_unlock( &p_intearction->object_lock ) ;
+        return;
+    }
 
     if( p_dialog->pp_widgets[0]->psz_text )
         free( p_dialog->pp_widgets[0]->psz_text );