mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-07 19:57:43 +02:00
Force unique stream name, use name as id
This commit is contained in:
parent
d76aac0de7
commit
341466ceb5
7 changed files with 32 additions and 39 deletions
|
@ -77,6 +77,12 @@ const std::string& PcmStream::getName() const
|
|||
}
|
||||
|
||||
|
||||
const std::string& PcmStream::getId() const
|
||||
{
|
||||
return getName();
|
||||
}
|
||||
|
||||
|
||||
const SampleFormat& PcmStream::getSampleFormat() const
|
||||
{
|
||||
return sampleFormat_;
|
||||
|
@ -154,7 +160,7 @@ json PcmStream::toJson() const
|
|||
|
||||
json j = {
|
||||
{"uri", uri_.toJson()},
|
||||
{"id", uri_.id()},
|
||||
{"id", getId()},
|
||||
{"status", state}
|
||||
};
|
||||
return j;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue