From 3b95dd47d53d4d9b5a247f2dda550b5470e62b48 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 27 Oct 2015 20:56:39 +0100 Subject: player: simplify audio sync pts calculation This was done for symmetry with adjust_sync(). But mpctx->delay is always 0 at this point, so prefer slightly simpler code. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/audio.c b/player/audio.c index 3a516eb04f..ce72e3d0f1 100644 --- a/player/audio.c +++ b/player/audio.c @@ -464,7 +464,7 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip) if (mpctx->video_status < STATUS_READY) return false; // wait until we know a video PTS if (mpctx->video_next_pts != MP_NOPTS_VALUE) - sync_pts = mpctx->video_next_pts - (opts->audio_delay - mpctx->delay); + sync_pts = mpctx->video_next_pts - opts->audio_delay; } else if (mpctx->hrseek_active) { sync_pts = mpctx->hrseek_pts; } -- cgit v1.2.3