Commit b8961d69 authored by Laurent Aimar's avatar Laurent Aimar

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)
parent 02c5f252
...@@ -345,7 +345,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri, ...@@ -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 ); DECMALLOC_NULL( p_input, input_item_t );
input_ItemInit( p_obj, p_input ); 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 ); vlc_object_lock( p_obj->p_libvlc );
p_input->i_id = ++priv->i_last_input_id; p_input->i_id = ++priv->i_last_input_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment