Force unique stream name, use name as id

This commit is contained in:
badaix 2016-11-09 10:25:26 +01:00
parent d76aac0de7
commit 341466ceb5
7 changed files with 32 additions and 39 deletions

View file

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