Commit 193f0371 authored by Jean-Philippe André's avatar Jean-Philippe André

Extensions: do not wait on widget if dialog is deleted

If the dialog is about to be deleted, it's too late to care about
the widget (it has already been removed from the UI).
parent 547b2f41
......@@ -862,8 +862,12 @@ static int vlclua_dialog_delete_widget( lua_State *L )
vlc_mutex_lock( &p_dlg->lock );
/* Same remarks as for dialog delete */
while( p_widget->p_sys_intf != NULL )
/* Same remarks as for dialog delete.
* If the dialog is deleted or about to be deleted, then there is no
* need to wait on this particular widget that already doesn't exist
* anymore in the UI */
while( p_widget->p_sys_intf != NULL && !p_dlg->b_kill
&& p_dlg->p_sys_intf != NULL )
{
vlc_cond_wait( &p_dlg->cond, &p_dlg->lock );
}
......
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