[vlc-devel] [PATCH 13/48] hls: mungle path

Rémi Denis-Courmont remi at remlab.net
Tue Jan 10 13:46:15 CET 2012


On Mon,  9 Jan 2012 16:16:22 +0100, Hugo Beauzée-Luyssen
<beauze.h at gmail.com> wrote:
> From: Luc Saillard <luc.saillard at sfr.com>
> 
> ---
>  modules/stream_filter/httplive.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/modules/stream_filter/httplive.c
> b/modules/stream_filter/httplive.c
> index 9788c7d..931ff96 100644
> --- a/modules/stream_filter/httplive.c
> +++ b/modules/stream_filter/httplive.c
> @@ -1999,6 +1999,12 @@ static int Open(vlc_object_t *p_this)
>          goto fail_thread;
>      }
>  
> +    /* We don't want the m3u playlist module to be called to demux our
> stream,
> +     * so remove the extension of the path */
> +    char *psz_ext = strrchr ( s->psz_path, '.' );
> +    if (psz_ext)
> +        psz_ext[0] = 0;
> +

I don't think you're allowed to modify psz_path here. And this hack is too
ugly to live anyway.

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



More information about the vlc-devel mailing list