From f3dcd85150e1403433b75b42834c626b0719d6ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 24 May 2015 20:57:31 +0200 Subject: video: do not use MP_NOPTS_VALUE for A/V difference There's no need for this, it just creates more corner cases. Also always reset it on seeks etc.. --- player/command.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 3e6a4da9f1..ad04969eb3 100644 --- a/player/command.c +++ b/player/command.c @@ -505,8 +505,6 @@ static int mp_property_avsync(void *ctx, struct m_property *prop, MPContext *mpctx = ctx; if (!mpctx->d_audio || !mpctx->d_video) return M_PROPERTY_UNAVAILABLE; - if (mpctx->last_av_difference == MP_NOPTS_VALUE) - return M_PROPERTY_UNAVAILABLE; if (action == M_PROPERTY_PRINT) { *(char **)arg = talloc_asprintf(NULL, "%7.3f", mpctx->last_av_difference); return M_PROPERTY_OK; -- cgit v1.2.3