1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 12:25:03 +00:00

audio: fix previous commit

This commit is contained in:
wm4 2014-01-06 18:51:02 +01:00
parent cd53de958d
commit 98ffa7c476

View File

@ -868,7 +868,7 @@ static int mp_property_audio_delay(m_option_t *prop, int action,
return M_PROPERTY_OK;
case M_PROPERTY_SET:
mpctx->audio_delay = mpctx->opts->audio_delay = *(float *)arg;
mpctx->delay -= mpctx->audio_delay - delay;
mpctx->delay += mpctx->audio_delay - delay;
return M_PROPERTY_OK;
}
return mp_property_generic_option(prop, action, arg, mpctx);