Reintroduce player state

This commit is contained in:
badaix 2019-11-27 21:33:25 +01:00
parent e998f9e3b0
commit 5c1f35d6db
3 changed files with 34 additions and 5 deletions

View file

@ -138,6 +138,7 @@ void PcmStream::setState(const ReaderState& newState)
{
if (newState != state_)
{
LOG(DEBUG) << "State changed: " << state_ << " => " << newState << "\n";
state_ = newState;
if (pcmListener_)
pcmListener_->onStateChanged(this, newState);