1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

demux: ignore forced demuxer type for directories

this for example allows --demuxer=rawaudio to work on directories
This commit is contained in:
Tom Yan 2018-11-24 09:48:41 +08:00 committed by Jan Ekström
parent c8424a3bee
commit 763eaad2aa

View File

@ -2475,7 +2475,7 @@ struct demuxer *demux_open(struct stream *stream, struct demuxer_params *params,
if (!force_format)
force_format = stream->demuxer;
if (force_format && force_format[0]) {
if (force_format && force_format[0] && !stream->is_directory) {
check_levels = d_request;
if (force_format[0] == '+') {
force_format += 1;