diff options
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/player/playloop.c b/player/playloop.c index 2392fd32a4..a3fcf133e3 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -985,6 +985,12 @@ void run_playloop(struct MPContext *mpctx) video_left = r > 0; + if (r == 3) + break; + + if (mpctx->restart_playback) + mpctx->sleeptime = 0; + if (r == 2) MP_TRACE(mpctx, "frametime=%5.3f\n", frame_time); @@ -1243,9 +1249,6 @@ void run_playloop(struct MPContext *mpctx) if (mpctx->stop_play) mpctx->sleeptime = 0; - if (mpctx->restart_playback) - mpctx->sleeptime = 0; - if (mpctx->sleeptime > 0 && handle_osd_redraw(mpctx)) mpctx->sleeptime = 0; |