]> git.sesse.net Git - vlc/commitdiff
- libvlc: make sure that p_static_libvlc always point to the first libvlc instance...
authorDamien Fouilleul <damienf@videolan.org>
Tue, 27 Feb 2007 12:16:55 +0000 (12:16 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Tue, 27 Feb 2007 12:16:55 +0000 (12:16 +0000)
src/libvlc-common.c

index 2ff4f9c1cf163a2ae4f2d619de27dbc9acfeceac..371f6cdc5d8622d26406a83dbb87a603898649f7 100644 (file)
@@ -217,7 +217,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
     /* Fake attachment */
     p_libvlc->b_attached = VLC_TRUE;
     /* Store data for the non-reentrant API */
-    p_static_vlc = p_libvlc;
+    if( !p_static_vlc )
+        p_static_vlc = p_libvlc;
 
     return p_libvlc;
 }