Implement access_GetParentInput and demux_GetParentInput and use.
[vlc.git] / src / input / stream_filter.c
index be1ba02..213643f 100644 (file)
@@ -42,7 +42,15 @@ stream_t *stream_FilterNew( stream_t *p_source,
     if( s == NULL )
         return NULL;
 
+    s->p_input = p_source->p_input;
+
     /* */
+    s->psz_path = strdup( p_source->psz_path );
+    if( !s->psz_path )
+    {
+        stream_CommonDelete( s );
+        return NULL;
+    }
     s->p_source = p_source;
 
     /* */