From 164088117085b0c866a10225fa20caf1290ffaa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 28 Aug 2008 19:28:35 +0300 Subject: [PATCH] If the thread does nothing, we might as well exit --- src/interface/interface.c | 7 ------- 1 file changed, 7 deletions(-) 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; -- 2.39.5