mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
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
Block a user