Commit 3bf3de01 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream_filter: improve parenting

Attach to the source stream´s parent rather than the source stream.
This avoids recursive vlc_object_release() when deleting the chain.
parent 6065f326
...@@ -42,7 +42,7 @@ stream_t *stream_FilterNew( stream_t *p_source, ...@@ -42,7 +42,7 @@ stream_t *stream_FilterNew( stream_t *p_source,
stream_t *s; stream_t *s;
assert( p_source != NULL ); assert( p_source != NULL );
s = stream_CommonNew( VLC_OBJECT( p_source ) ); s = stream_CommonNew( p_source->p_parent );
if( s == NULL ) if( s == NULL )
return NULL; return NULL;
......
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