mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-13 00:01:52 +02:00
Add wildcard (*) support to metastreams
This commit is contained in:
parent
b638d81b66
commit
cbdaeb3ea9
2 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,7 @@ bool MetaStream::isAllowed(const PcmStream& stream) const
|
|||
if (component.empty())
|
||||
continue;
|
||||
|
||||
if (stream.getName() == component)
|
||||
if (component == WILDCARD || stream.getName() == component)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -99,6 +99,8 @@ void MetaStream::updateActiveStream()
|
|||
return true;
|
||||
if (component == second->getName())
|
||||
return false;
|
||||
if (component == WILDCARD)
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue