Commit 3e09f368 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/menus.cpp: release the wxMutexGui lock before...

* modules/gui/wxwindows/menus.cpp: release the wxMutexGui lock before triggering object var callbacks.
parent 9565586b
...@@ -892,7 +892,9 @@ void MenuEvtHandler::OnMenuEvent( wxCommandEvent& event ) ...@@ -892,7 +892,9 @@ void MenuEvtHandler::OnMenuEvent( wxCommandEvent& event )
p_menuitemext->i_object_id ); p_menuitemext->i_object_id );
if( p_object == NULL ) return; if( p_object == NULL ) return;
wxMutexGuiLeave(); // We don't want deadlocks
var_Set( p_object, p_menuitemext->psz_var, p_menuitemext->val ); var_Set( p_object, p_menuitemext->psz_var, p_menuitemext->val );
wxMutexGuiEnter();
vlc_object_release( p_object ); vlc_object_release( p_object );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment