summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-24 17:46:08 +0100
committerwm4 <wm4@nowhere>2013-12-24 17:46:08 +0100
commit9292f537d661af16321fd35eb0016e830594863b (patch)
tree452a7e854860c50a15e5893c4602430ef42076a6 /player/video.c
parent2b87415f6f38e93358b9d3034dcf5af6a70f43cc (diff)
downloadmpv-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/video.c')
-rw-r--r--player/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index 38e86a395b..9df3caa940 100644
--- a/player/video.c
+++ b/player/video.c
@@ -136,7 +136,7 @@ int reinit_video_chain(struct MPContext *mpctx)
struct MPOpts *opts = mpctx->opts;
assert(!(mpctx->initialized_flags & INITIALIZED_VCODEC));
assert(!mpctx->d_video);
- struct track *track = mpctx->current_track[STREAM_VIDEO];
+ struct track *track = mpctx->current_track[0][STREAM_VIDEO];
struct sh_stream *sh = init_demux_stream(mpctx, track);
if (!sh)
goto no_video;
@@ -318,7 +318,7 @@ void video_execute_format_change(struct MPContext *mpctx)
static int check_framedrop(struct MPContext *mpctx, double frame_time)
{
struct MPOpts *opts = mpctx->opts;
- struct track *t_audio = mpctx->current_track[STREAM_AUDIO];
+ struct track *t_audio = mpctx->current_track[0][STREAM_AUDIO];
struct sh_stream *sh_audio = t_audio ? t_audio->stream : NULL;
// check for frame-drop:
if (mpctx->d_audio && !mpctx->ao->untimed && sh_audio &&