From e3edcb5b9645012e7984d67a43e4bc56a158d203 Mon Sep 17 00:00:00 2001 From: chme Date: Thu, 26 Sep 2019 08:11:29 +0200 Subject: [PATCH] [player] Fix missing update of master volume in web interface Activating/deactivating an output might change the master volume, therefor send a volume change notification. --- src/player.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player.c b/src/player.c index f57dd8e3..77ce6798 100644 --- a/src/player.c +++ b/src/player.c @@ -2967,7 +2967,7 @@ player_speaker_set(uint64_t *ids) ret = commands_exec_sync(cmdbase, speaker_set, NULL, &speaker_set_param); - listener_notify(LISTENER_SPEAKER); + listener_notify(LISTENER_SPEAKER | LISTENER_VOLUME); return ret; } @@ -2992,7 +2992,7 @@ player_speaker_enable(uint64_t id) ret = commands_exec_sync(cmdbase, speaker_enable, NULL, &id); - listener_notify(LISTENER_SPEAKER); + listener_notify(LISTENER_SPEAKER | LISTENER_VOLUME); return ret; } @@ -3004,7 +3004,7 @@ player_speaker_disable(uint64_t id) ret = commands_exec_sync(cmdbase, speaker_disable, NULL, &id); - listener_notify(LISTENER_SPEAKER); + listener_notify(LISTENER_SPEAKER | LISTENER_VOLUME); return ret; }