mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
fix muting
This commit is contained in:
parent
f4c99c7a18
commit
c97ab3c60b
1 changed files with 5 additions and 2 deletions
|
@ -63,9 +63,12 @@ void StreamServer::onChunkRead(const PcmStream* pcmStream, const msg::PcmChunk*
|
||||||
GroupPtr group = Config::instance().getGroupFromClient(s->clientId);
|
GroupPtr group = Config::instance().getGroupFromClient(s->clientId);
|
||||||
if (group)
|
if (group)
|
||||||
{
|
{
|
||||||
|
if (group->muted)
|
||||||
|
continue;
|
||||||
|
|
||||||
ClientInfoPtr client = group->getClient(s->clientId);
|
ClientInfoPtr client = group->getClient(s->clientId);
|
||||||
if ((client && client->config.volume.muted) || group->muted)
|
if (client && client->config.volume.muted)
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue