[vlc-devel] [PATCH] stream_FilterNew: fix missing psz_url

Rémi Denis-Courmont remi at remlab.net
Mon Oct 12 08:48:20 CEST 2015


Le 2015-10-11 14:03, Francois Cartegnie a écrit :
> ---
>  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 3c05d2b..1ea3154 100644
> --- a/src/input/stream_filter.c
> +++ b/src/input/stream_filter.c
> @@ -48,7 +48,7 @@ stream_t *stream_FilterNew( stream_t *p_source,
>
>      s->p_input = p_source->p_input;
>
> -    if( s->psz_url != NULL )
> +    if( s->psz_url == NULL )
>      {
>          s->psz_url = strdup( p_source->psz_url );
>          if( unlikely(s->psz_url == NULL) )

Neither my code nor your patch make much sense.

I guess it was supposed to be 'p_source->psz_url != NULL'.

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list