]> git.sesse.net Git - vlc/commitdiff
intf_Create: do not fail if libvlc is exiting
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 30 May 2010 17:15:50 +0000 (20:15 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 30 May 2010 17:52:23 +0000 (20:52 +0300)
This should fix VLC reporting an interface error if it is interrupted
early.

src/interface/interface.c

index 00871e4a98612afad9fd8f0c2882b5ad4b2ad5fc..ba9240b0c875c423f9392d52e033eaff483a77a0 100644 (file)
@@ -128,12 +128,6 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
         goto error;
     }
 
-    vlc_mutex_lock( &lock );
-    if( !vlc_object_alive( p_libvlc ) )
-    {
-        vlc_mutex_unlock( &lock );
-        goto error; /* Too late! */
-    }
 #if defined( __APPLE__ ) || defined( WIN32 )
     /* Hack to get Mac OS X Cocoa runtime running
      * (it needs access to the main thread) */