aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mplayer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index e2b8a372d1..893ae77694 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2250,6 +2250,9 @@ static int sleep_until_near_frame(struct MPContext *mpctx, float *time_frame,
double audio_limit = 2;
current_module="calc_sleep_time";
+ if (mpctx->restart_playback)
+ return 0;
+
*time_frame -= get_relative_time(mpctx); // reset timer
if (mpctx->sh_audio && !mpctx->d_audio->eof) {