summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-22 14:20:00 +0200
committerwm4 <wm4@nowhere>2014-08-22 14:22:06 +0200
commit5afc025cc9c79fdee0a0aa7453971656f67ed918 (patch)
tree71e7a502f59799a93e836725b6c68644d8f88690 /player/audio.c
parent7b3a889c92a1c4fd768d334fe84a84fa7a4e5149 (diff)
downloadmpv-5afc025cc9c79fdee0a0aa7453971656f67ed918.tar.bz2
mpv-5afc025cc9c79fdee0a0aa7453971656f67ed918.tar.xz
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.
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c4
1 files changed, 2 insertions, 2 deletions
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
}