Log stream state as string

This commit is contained in:
badaix 2021-05-04 23:51:57 +02:00
parent 178888a512
commit 1725cffc6e
5 changed files with 25 additions and 5 deletions

View file

@ -94,7 +94,7 @@ void MetaStream::onMetaChanged(const PcmStream* pcmStream)
void MetaStream::onStateChanged(const PcmStream* pcmStream, ReaderState state)
{
LOG(DEBUG, LOG_TAG) << "onStateChanged: " << pcmStream->getName() << ", state: " << static_cast<int>(state) << "\n";
LOG(DEBUG, LOG_TAG) << "onStateChanged: " << pcmStream->getName() << ", state: " << state << "\n";
std::lock_guard<std::mutex> lock(mutex_);
for (const auto& stream : streams_)
{