diff options
author | wm4 <wm4@nowhere> | 2016-10-05 16:45:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-05 16:45:04 +0200 |
commit | d7e587acc93a76950585480cdf0aaafd102dd8b2 (patch) | |
tree | 101b10fb0160839493283dd7969b45a179379632 /player | |
parent | 6fb12a5fdaf95bf5ded286c8db18a30e392964e1 (diff) | |
download | mpv-d7e587acc93a76950585480cdf0aaafd102dd8b2.tar.bz2 mpv-d7e587acc93a76950585480cdf0aaafd102dd8b2.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c index 96f60d70a9..1fa4695a91 100644 --- a/player/command.c +++ b/player/command.c @@ -1908,10 +1908,7 @@ static int mp_property_audio_device(void *ctx, struct m_property *prop, } } } - int r = mp_property_generic_option(mpctx, prop, action, arg); - if (action == M_PROPERTY_SET) - reload_audio_output(mpctx); - return r; + return mp_property_generic_option(mpctx, prop, action, arg); } static int mp_property_audio_devices(void *ctx, struct m_property *prop, |