From d7e587acc93a76950585480cdf0aaafd102dd8b2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 5 Oct 2016 16:45:04 +0200 Subject: options: handle --audio-device changes like the other options Don't require special property code for handling updates, and simply use the UPDATE_AUDIO flag instead. Also make runtime changes to --audio-client-name take effect. --- options/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index 7d1505300f..93a76e5d41 100644 --- a/options/options.c +++ b/options/options.c @@ -499,9 +499,9 @@ const m_option_t mp_opts[] = { OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list, ), OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list, .deprecation_message = "deprecated, use global options"), - OPT_STRING("audio-device", audio_device, 0), + OPT_STRING("audio-device", audio_device, UPDATE_AUDIO), OPT_FLAG("audio-exclusive", audio_exclusive, UPDATE_AUDIO), - OPT_STRING("audio-client-name", audio_client_name, 0), + OPT_STRING("audio-client-name", audio_client_name, UPDATE_AUDIO), OPT_FLAG("audio-fallback-to-null", ao_null_fallback, 0), OPT_FLAG("audio-stream-silence", audio_stream_silence, 0), OPT_FLOATRANGE("audio-wait-open", audio_wait_open, 0, 0, 60), -- cgit v1.2.3