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/video.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/video.c')
-rw-r--r-- | player/video.c | 4 |
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 && |