[vlc-commits] stream_filter: improve parenting

Rémi Denis-Courmont git at videolan.org
Tue Aug 25 20:33:15 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 25 20:23:47 2015 +0300| [3bf3de015a2cfad15272234320642e2740030347] | committer: 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.

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

 src/input/stream_filter.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/stream_filter.c b/src/input/stream_filter.c
index 0e3cf4b..353cf18 100644
--- a/src/input/stream_filter.c
+++ b/src/input/stream_filter.c
@@ -42,7 +42,7 @@ stream_t *stream_FilterNew( stream_t *p_source,
     stream_t *s;
     assert( p_source != NULL );
 
-    s = stream_CommonNew( VLC_OBJECT( p_source ) );
+    s = stream_CommonNew( p_source->p_parent );
     if( s == NULL )
         return NULL;
 



More information about the vlc-commits mailing list