summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/loadfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index d09addeb89..5972c634be 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -591,6 +591,8 @@ static void mark_track_selection(struct MPContext *mpctx, int order,
{
assert(order >= 0 && order < NUM_PTRACKS);
mpctx->opts->stream_id[order][type] = value;
+ if (type != STREAM_SUB && order != 0)
+ return; // mconfig only contains one track for vid/aid
m_config_notify_change_opt_ptr(mpctx->mconfig,
&mpctx->opts->stream_id[order][type]);
}