mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 15:06:02 -05:00
Enumerate all active or advertised speakers
We need to include speakers that are currently active in our enumeration, even if they're not advertising anymore; until the session is declared failed by RAOP, we are streaming to this device, even if it's not advertising anymore - which may be a temporary condition.
This commit is contained in:
parent
c70caad87e
commit
45e3d55ee0
@ -2742,7 +2742,7 @@ player_speaker_enumerate(spk_enum_cb cb, void *arg)
|
|||||||
|
|
||||||
for (rd = dev_list; rd; rd = rd->next)
|
for (rd = dev_list; rd; rd = rd->next)
|
||||||
{
|
{
|
||||||
if (rd->advertised)
|
if (rd->advertised || rd->selected)
|
||||||
cb(rd->id, rd->name, rd->selected, rd->has_password, arg);
|
cb(rd->id, rd->name, rd->selected, rd->has_password, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user