diff options
-rw-r--r-- | player/video.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c index 7e24502e8c..1a3cfb3b5f 100644 --- a/player/video.c +++ b/player/video.c @@ -384,10 +384,9 @@ static void handle_new_frame(struct MPContext *mpctx) } } mpctx->delay -= frame_time; - if (mpctx->video_status >= STATUS_PLAYING) { - mpctx->time_frame += frame_time / mpctx->video_speed; + mpctx->time_frame += frame_time / mpctx->video_speed; + if (mpctx->video_status >= STATUS_PLAYING) adjust_sync(mpctx, pts, frame_time); - } MP_TRACE(mpctx, "frametime=%5.3f\n", frame_time); } |