summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-24 20:57:31 +0200
committerwm4 <wm4@nowhere>2015-05-24 23:27:23 +0200
commitf3dcd85150e1403433b75b42834c626b0719d6ca (patch)
tree0f0100f97214ae20325fc2b98a313e25b42601b9 /player/command.c
parent58e7d0a30be40efbdce93d9a79b6a7def4d36451 (diff)
downloadmpv-f3dcd85150e1403433b75b42834c626b0719d6ca.tar.bz2
mpv-f3dcd85150e1403433b75b42834c626b0719d6ca.tar.xz
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..
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 0 insertions, 2 deletions
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;