]> git.sesse.net Git - vlc/commitdiff
p_libvlc needs b_attached = TRUE for vlc_list_find. Fixes embedded vout
authorClément Stenac <zorglub@videolan.org>
Sun, 12 Nov 2006 19:24:12 +0000 (19:24 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 12 Nov 2006 19:24:12 +0000 (19:24 +0000)
src/libvlc-common.c

index 970d514fb9feeef22fa1f359fdb8b79ccdb63fe0..4529b4b13dc9a1053712869088eedb7fd1e3a67a 100644 (file)
@@ -207,7 +207,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
     vlc_mutex_init( p_libvlc, &p_libvlc->quicktime_lock );
     vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW );
 #endif
-
+    /* Fake attachment */
+    p_libvlc->b_attached = VLC_TRUE;
     /* Store data for the non-reentrant API */
     p_static_vlc = p_libvlc;