From: RĂ©mi Denis-Courmont Date: Thu, 28 Aug 2008 16:28:35 +0000 (+0300) Subject: If the thread does nothing, we might as well exit X-Git-Tag: 1.0.0-pre1~3735 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=164088117085b0c866a10225fa20caf1290ffaa6;p=vlc If the thread does nothing, we might as well exit --- diff --git a/src/interface/interface.c b/src/interface/interface.c index 3183c98610..3dc1d1a711 100644 --- a/src/interface/interface.c +++ b/src/interface/interface.c @@ -227,13 +227,6 @@ static void* RunInterface( vlc_object_t *p_this ) /* Give control to the interface */ if( p_intf->pf_run ) p_intf->pf_run( p_intf ); - else - { - vlc_object_lock( p_intf ); - while( vlc_object_alive( p_intf ) ) - vlc_object_wait( p_intf ); - vlc_object_unlock( p_intf ); - } vlc_restorecancel (canc); return NULL;