]> git.sesse.net Git - vlc/commitdiff
Fixed segfault on input_ItemDestroy by vlc_gc_init directly with libvlc and
authorLaurent Aimar <fenrir@videolan.org>
Sat, 5 Jul 2008 11:29:01 +0000 (11:29 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 5 Jul 2008 11:34:25 +0000 (11:34 +0000)
not wth the object that creates new input items.
(It fixes the segfaults I had when quitting VLC)

src/input/item.c

index 8bed232c33adde6eb028759ca3ddcd544c83e11f..793ca3a3c2f4a12659a6161ae4c2d6ffdddc87a1 100644 (file)
@@ -345,7 +345,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
     DECMALLOC_NULL( p_input, input_item_t );
 
     input_ItemInit( p_obj, p_input );
-    vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj );
+    vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj->p_libvlc );
 
     vlc_object_lock( p_obj->p_libvlc );
     p_input->i_id = ++priv->i_last_input_id;