From 5afc025cc9c79fdee0a0aa7453971656f67ed918 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 Aug 2014 14:20:00 +0200 Subject: video: get rid of video_next_pts field Not really needed anymore. Code should be mostly equivalent. Also get rid of some other now-unused or outdated things. --- player/audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index 3a691fed09..df80fcd161 100644 --- a/player/audio.c +++ b/player/audio.c @@ -329,8 +329,8 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip) double sync_pts = MP_NOPTS_VALUE; if (sync_to_video) { - if (mpctx->video_next_pts != MP_NOPTS_VALUE) { - sync_pts = mpctx->video_next_pts; + if (mpctx->video_pts != MP_NOPTS_VALUE) { + sync_pts = mpctx->video_pts; } else if (mpctx->video_status < STATUS_READY) { return false; // wait until we know a video PTS } -- cgit v1.2.3