macosx: cosmetic, avoid pthread_join() on self
[vlc.git] / src / libvlc-common.c
index e00ad5a..25824c0 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 );