mirror of https://github.com/mpv-player/mpv
core: make --demuxer not affect external subtitles
This also affects --audiofile. The previous behavior wasn't really useful. There are even separate switches for that: --audio-demuxer and --sub-demuxer.
This commit is contained in:
parent
c729df3d10
commit
b3dff29001
|
@ -4230,7 +4230,7 @@ goto_reopen_demuxer: ;
|
|||
|
||||
mpctx->audio_delay = opts->audio_delay;
|
||||
|
||||
mpctx->demuxer = demux_open(mpctx->stream, NULL, NULL, opts);
|
||||
mpctx->demuxer = demux_open(mpctx->stream, opts->demuxer_name, NULL, opts);
|
||||
mpctx->master_demuxer = mpctx->demuxer;
|
||||
|
||||
if (!mpctx->demuxer) {
|
||||
|
|
|
@ -580,8 +580,6 @@ struct demuxer *demux_open(struct stream *stream, char *force_format,
|
|||
const int *check_levels = d_normal;
|
||||
const struct demuxer_desc *check_desc = NULL;
|
||||
|
||||
if (!force_format)
|
||||
force_format = opts->demuxer_name;
|
||||
if (!force_format)
|
||||
force_format = stream->demuxer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue