]> git.sesse.net Git - vlc/commitdiff
If the thread does nothing, we might as well exit
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 28 Aug 2008 16:28:35 +0000 (19:28 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 28 Aug 2008 16:28:35 +0000 (19:28 +0300)
src/interface/interface.c

index 3183c9861054bd0ade9d88cd9dc9ea1480279e8b..3dc1d1a711661c9d1f95705201422e924d5bbb79 100644 (file)
@@ -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;