diff options
author | wm4 <wm4@nowhere> | 2014-09-19 22:38:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-20 00:44:37 +0200 |
commit | 70f4721574eec22417079044db4f8a1337aa0569 (patch) | |
tree | bf59ecdafd7eb9200b1dc7c0623dfdcc54134ee9 /player/video.c | |
parent | c86b4790a839a9e02f7ed95f229d41d829c09c99 (diff) | |
download | mpv-70f4721574eec22417079044db4f8a1337aa0569.tar.bz2 mpv-70f4721574eec22417079044db4f8a1337aa0569.tar.xz |
player: reset last_av_difference if not applicable
Don't let stale values linger around.
Also fix a slightly related case in audio.c.
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c index 5b7048e2b4..865b38be43 100644 --- a/player/video.c +++ b/player/video.c @@ -641,6 +641,7 @@ static void update_avsync_before_frame(struct MPContext *mpctx) static void update_avsync_after_frame(struct MPContext *mpctx) { mpctx->time_frame -= get_relative_time(mpctx); + mpctx->last_av_difference = 0; if (mpctx->audio_status != STATUS_PLAYING || mpctx->video_status != STATUS_PLAYING) |