summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-30 23:49:30 +0100
committerwm4 <wm4@nowhere>2015-01-30 23:49:30 +0100
commit48f96f43ec1cf4f91619540a154b51afb83def41 (patch)
treeac00425d88f8cd9b4da6f6b7b742e7c7435bf79a /player/video.c
parent3813c3804f817d09d6df38363736b3b756901790 (diff)
downloadmpv-48f96f43ec1cf4f91619540a154b51afb83def41.tar.bz2
mpv-48f96f43ec1cf4f91619540a154b51afb83def41.tar.xz
player: minor simplification in A/V-sync related code
Just minor things.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c
index 0795b66cbd..0485ba70ec 100644
--- a/player/video.c
+++ b/player/video.c
@@ -588,9 +588,8 @@ static int video_output_image(struct MPContext *mpctx, double endpts)
frame_time = 0;
}
mpctx->video_next_pts = pts;
- if (mpctx->d_audio)
- mpctx->delay -= frame_time;
- if (mpctx->video_status >= STATUS_READY) {
+ mpctx->delay -= frame_time;
+ if (mpctx->video_status >= STATUS_PLAYING) {
mpctx->time_frame += frame_time / mpctx->opts->playback_speed;
adjust_sync(mpctx, pts, frame_time);
}