[vlc-devel] [PATCH] input: add url parsing of `input-slave` option

Alaric Senat dev.asenat at posteo.net
Sat Apr 3 13:16:26 UTC 2021


On Sat, Apr 3, 2021 at 11:18, RĂ©mi Denis-Courmont <remi at remlab.net> 
> I think the whole idea of extracting the type from extension is 
> flawed to begin
> with. There will always be mismatches, missing or unknown extensions.

That's right, but please note that this part only checks extensions to
deduce subtitles files only, all the other media type will be deduced
like usual.

I believe that the choice of letting the file extension tell if a track
is a subtitle or not is mostly due to the ton of false positives that
parsing a sub file can bring. The sub demuxer has a priority of zero, so
I feel like activating it manually when some files have an explicit sub
extension is a great trade off.


More information about the vlc-devel mailing list