1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

player: fix --secondary-sid

Use the "default" selection for the ff-index, not the "no" selection.

Broken by commit f0f83ff.
Fixes #1243.
This commit is contained in:
wm4 2014-11-04 18:53:36 +01:00
parent bebfaae666
commit 5e9dfe932f

View File

@ -1051,7 +1051,7 @@ goto_reopen_demuxer: ;
select_track(mpctx, STREAM_SUB, opts->sub_id, opts->sub_id_ff,
opts->sub_lang);
mpctx->current_track[1][STREAM_SUB] =
select_track(mpctx, STREAM_SUB, opts->sub2_id, -2, NULL);
select_track(mpctx, STREAM_SUB, opts->sub2_id, -1, NULL);
for (int t = 0; t < STREAM_TYPE_COUNT; t++) {
for (int i = 0; i < NUM_PTRACKS; i++) {
struct track *track = mpctx->current_track[i][t];