mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 02:38:09 -05:00
[player] Trigger SPEAKER event after finishing the command speaker_set
This commit is contained in:
parent
d839e8cabb
commit
8776aa36e2
@ -2543,8 +2543,6 @@ speaker_set(void *arg, int *retval)
|
||||
}
|
||||
}
|
||||
|
||||
listener_notify(LISTENER_SPEAKER);
|
||||
|
||||
if (*retval > 0)
|
||||
return COMMAND_PENDING; // async
|
||||
|
||||
@ -2986,6 +2984,9 @@ player_speaker_set(uint64_t *ids)
|
||||
cmdarg.speaker_set_param.intval = 0;
|
||||
|
||||
ret = commands_exec_sync(cmdbase, speaker_set, NULL, &cmdarg);
|
||||
|
||||
listener_notify(LISTENER_SPEAKER);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user