]> git.sesse.net Git - vlc/commitdiff
macosx: cosmetic, avoid pthread_join() on self
authorDamien Fouilleul <damienf@videolan.org>
Fri, 12 Oct 2007 21:37:56 +0000 (21:37 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Fri, 12 Oct 2007 21:37:56 +0000 (21:37 +0000)
src/libvlc-common.c

index e00ad5a5e6d5343a02de7411804be40faaa9ad9b..25824c078a4fad56f89cbc826e5ea10a1e8b2dab 100644 (file)
@@ -1132,7 +1132,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc,
     /* Try to run the interface */
     p_intf->b_play = b_play;
     i_err = intf_RunThread( p_intf );
-    if( i_err )
+    if( i_err || p_intf->b_should_run_on_first_thread )
     {
         vlc_object_detach( p_intf );
         intf_Destroy( p_intf );