summaryrefslogtreecommitdiffstats
path: root/mpvcore/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/command.c')
-rw-r--r--mpvcore/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/command.c b/mpvcore/command.c
index a7dab8be8a..a18d5620a1 100644
--- a/mpvcore/command.c
+++ b/mpvcore/command.c
@@ -313,6 +313,8 @@ static int mp_property_avsync(m_option_t *prop, int action, void *arg,
{
if (!mpctx->sh_audio || !mpctx->sh_video)
return M_PROPERTY_UNAVAILABLE;
+ if (mpctx->last_av_difference == MP_NOPTS_VALUE)
+ return M_PROPERTY_UNAVAILABLE;
return m_property_double_ro(prop, action, arg, mpctx->last_av_difference);
}