mirror of https://github.com/mpv-player/mpv
player: deselect secondary sub when switching to file with different tracks
This applies the usual logic of resetting stream selections to default when switching to a file with a different track layout. (This is to prevent selecting random streams.)
This commit is contained in:
parent
f751609450
commit
f691d8f7b6
|
@ -591,6 +591,8 @@ static void check_previous_track_selection(struct MPContext *mpctx)
|
|||
mpctx->opts->audio_id = -1;
|
||||
if (opts->sub_id >= 0)
|
||||
mpctx->opts->sub_id = -1;
|
||||
if (opts->sub2_id >= 0)
|
||||
mpctx->opts->sub2_id = -2;
|
||||
talloc_free(mpctx->track_layout_hash);
|
||||
mpctx->track_layout_hash = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue