mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 02:07:55 +02:00
Meta stream considers paused streams as inactive
This commit is contained in:
parent
3bf9a91fd1
commit
0eb987f66e
1 changed files with 3 additions and 2 deletions
|
@ -102,8 +102,9 @@ void MetaStream::onStateChanged(const PcmStream* pcmStream, ReaderState state)
|
|||
LOG(DEBUG, LOG_TAG) << "onStateChanged: " << pcmStream->getName() << ", state: " << state << "\n";
|
||||
std::lock_guard<std::recursive_mutex> lock(active_mutex_);
|
||||
|
||||
if (active_stream_->getProperties().playback_status == PlaybackStatus::kPaused)
|
||||
return;
|
||||
// Should a pause keep the stream active? E.g. Spotify can only pause, so it would never get inactive
|
||||
// if (active_stream_->getProperties().playback_status == PlaybackStatus::kPaused)
|
||||
// return;
|
||||
|
||||
auto switch_stream = [this](std::shared_ptr<PcmStream> new_stream) {
|
||||
if (new_stream == active_stream_)
|
||||
|
|
Loading…
Add table
Reference in a new issue