diff options
author | wm4 <wm4@nowhere> | 2013-12-24 17:46:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-24 17:46:08 +0100 |
commit | 9292f537d661af16321fd35eb0016e830594863b (patch) | |
tree | 452a7e854860c50a15e5893c4602430ef42076a6 /player/sub.c | |
parent | 2b87415f6f38e93358b9d3034dcf5af6a70f43cc (diff) | |
download | mpv-9292f537d661af16321fd35eb0016e830594863b.tar.bz2 mpv-9292f537d661af16321fd35eb0016e830594863b.tar.xz |
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.
Diffstat (limited to 'player/sub.c')
-rw-r--r-- | player/sub.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |