Add wildcard (*) support to metastreams

This commit is contained in:
Jerome 2024-08-22 16:39:33 -04:00
parent b638d81b66
commit cbdaeb3ea9
2 changed files with 6 additions and 1 deletions

View file

@ -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;
};