Commit c68aabaa authored by Antoine Cellerier's avatar Antoine Cellerier

prevent some more segfaults.

zorglub: could you have a look ? this solution doesn't seem right to
me because we "loose" some of the calls to the interaction system if
they're sent at the wrong moment.
parent 18cf71dc
...@@ -375,7 +375,8 @@ void __intf_UserProgressUpdate( vlc_object_t *p_this, int i_id, ...@@ -375,7 +375,8 @@ void __intf_UserProgressUpdate( vlc_object_t *p_this, int i_id,
vlc_mutex_lock( &p_interaction->object_lock ); vlc_mutex_lock( &p_interaction->object_lock );
p_dialog = intf_InteractionGetById( p_this, i_id ); p_dialog = intf_InteractionGetById( p_this, i_id );
if( !p_dialog || p_dialog->i_status == NEW_DIALOG ) if( !p_dialog || p_dialog->i_status == NEW_DIALOG
|| p_dialog->i_status == HIDING_DIALOG )
{ {
vlc_mutex_unlock( &p_interaction->object_lock ) ; vlc_mutex_unlock( &p_interaction->object_lock ) ;
return; return;
...@@ -465,7 +466,8 @@ void __intf_UserHide( vlc_object_t *p_this, int i_id ) ...@@ -465,7 +466,8 @@ void __intf_UserHide( vlc_object_t *p_this, int i_id )
vlc_mutex_lock( &p_interaction->object_lock ); vlc_mutex_lock( &p_interaction->object_lock );
p_dialog = intf_InteractionGetById( p_this, i_id ); p_dialog = intf_InteractionGetById( p_this, i_id );
if( !p_dialog ) if( !p_dialog || p_dialog->i_status == NEW_DIALOG
|| p_dialog->i_status == HIDING_DIALOG )
{ {
vlc_mutex_unlock( &p_interaction->object_lock ); vlc_mutex_unlock( &p_interaction->object_lock );
return; return;
......
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