[vlc-devel] playlist/m3u: ignore input with HLS-specific Content-Type

Francois Cartegnie fcvlcdev at free.fr
Thu Jun 29 10:06:11 CEST 2017


> commit 7ce91b60a8e0789859c40264c015c1f25f090509

> +    if (type != NULL
> +     && (!vlc_ascii_strcasecmp(type, "application/vnd.apple.mpegurl")
> +      || !vlc_ascii_strcasecmp(type, "audio/mpegurl")))
> +    {
> +        free(type);
> +        return VLC_EGENERIC;
> +    }
> +

Now this time this breaks M3U.

The rule is simple:
Only application/vnd.apple.mpegurl is HLS.

Everything else can be M3U or HLS.


Francois


More information about the vlc-devel mailing list