From f691d8f7b65f93c08fb93505a05187cc232273b0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 25 Dec 2013 11:29:38 +0100 Subject: 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.) --- player/loadfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/loadfile.c b/player/loadfile.c index 251112975f..64db70687b 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -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; } -- cgit v1.2.3