summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/mplayer.c b/core/mplayer.c
index a7761b4da5..6d0405620b 100644
--- a/core/mplayer.c
+++ b/core/mplayer.c
@@ -3264,6 +3264,10 @@ static void run_playloop(struct MPContext *mpctx)
mpctx->time_frame += frame_time / opts->playback_speed;
adjust_sync(mpctx, frame_time);
}
+ if (!video_left) {
+ mpctx->delay = 0;
+ mpctx->last_av_difference = 0;
+ }
}
if (endpts != MP_NOPTS_VALUE)