[vlc-devel] commit: Fixed segfault on input_ItemDestroy by vlc_gc_init directly with libvlc and (Laurent Aimar )

git version control git at videolan.org
Sat Jul 5 13:32:34 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jul  5 11:29:01 2008 +0000| [b8961d693f68502c83e085db25f1d4903594519a]

Fixed segfault on input_ItemDestroy by vlc_gc_init directly with libvlc and
not wth the object that creates new input items.
(It fixes the segfaults I had when quitting VLC)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8961d693f68502c83e085db25f1d4903594519a
---

 src/input/item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index 8bed232..793ca3a 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -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;




More information about the vlc-devel mailing list