]> git.sesse.net Git - vlc/blobdiff - src/interface/interface.c
If the thread does nothing, we might as well exit
[vlc] / 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;