mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
audio: fix previous commit
This commit is contained in:
parent
cd53de958d
commit
98ffa7c476
@ -868,7 +868,7 @@ static int mp_property_audio_delay(m_option_t *prop, int action,
|
|||||||
return M_PROPERTY_OK;
|
return M_PROPERTY_OK;
|
||||||
case M_PROPERTY_SET:
|
case M_PROPERTY_SET:
|
||||||
mpctx->audio_delay = mpctx->opts->audio_delay = *(float *)arg;
|
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 M_PROPERTY_OK;
|
||||||
}
|
}
|
||||||
return mp_property_generic_option(prop, action, arg, mpctx);
|
return mp_property_generic_option(prop, action, arg, mpctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user