From 9292f537d661af16321fd35eb0016e830594863b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Dec 2013 17:46:08 +0100 Subject: player: add infrastructure to select multiple tracks at once Of course this does not allow decoding multiple tracks at once; it just adds some minor infrastructure, which could be used to achieve this. --- player/sub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/sub.c') diff --git a/player/sub.c b/player/sub.c index a2455589db..3593bab710 100644 --- a/player/sub.c +++ b/player/sub.c @@ -80,7 +80,7 @@ void update_subtitles(struct MPContext *mpctx) if (!(mpctx->initialized_flags & INITIALIZED_SUB)) return; - struct track *track = mpctx->current_track[STREAM_SUB]; + struct track *track = mpctx->current_track[0][STREAM_SUB]; struct dec_sub *dec_sub = mpctx->d_sub; assert(track && dec_sub); @@ -172,7 +172,7 @@ static void set_dvdsub_fake_extradata(struct dec_sub *dec_sub, struct stream *st void reinit_subs(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; - struct track *track = mpctx->current_track[STREAM_SUB]; + struct track *track = mpctx->current_track[0][STREAM_SUB]; assert(!(mpctx->initialized_flags & INITIALIZED_SUB)); -- cgit v1.2.3