diff options
author | wm4 <wm4@nowhere> | 2019-12-27 17:56:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-27 17:56:22 +0100 |
commit | 025e77eaf11963d1d55e8040e9b58cba220687d7 (patch) | |
tree | 91240b9160611508cf46791a324dfa4a00b5c2a8 /audio/out/ao.c | |
parent | 0c0c373844d733c75ff3183a297a1a55c336f1a2 (diff) | |
download | mpv-025e77eaf11963d1d55e8040e9b58cba220687d7.tar.bz2 mpv-025e77eaf11963d1d55e8040e9b58cba220687d7.tar.xz |
audio: react to --ao and --audio-buffer runtime changes
Before this commit, runtime changes were only applied if something else
caused audio to be reinitialized. Now setting them reinitializes audio
explicitly.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c index 28a0163399..73131020c0 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -136,11 +136,11 @@ static const struct m_obj_list ao_obj_list = { #define OPT_BASE_STRUCT struct ao_opts const struct m_sub_options ao_conf = { .opts = (const struct m_option[]) { - OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list, ), + OPT_SETTINGSLIST("ao", audio_driver_list, UPDATE_AUDIO, &ao_obj_list, ), OPT_STRING("audio-device", audio_device, UPDATE_AUDIO), OPT_STRING("audio-client-name", audio_client_name, UPDATE_AUDIO), - OPT_DOUBLE("audio-buffer", audio_buffer, M_OPT_MIN | M_OPT_MAX, - .min = 0, .max = 10), + OPT_DOUBLE("audio-buffer", audio_buffer, + UPDATE_AUDIO | M_OPT_MIN | M_OPT_MAX, .min = 0, .max = 10), {0} }, .size = sizeof(OPT_BASE_STRUCT), |