mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
If the audio has stopped, transfer the AudioEngine state to Stopped too
This needs to be done to handle unpausable tracks correctly in the UI.
This commit is contained in:
@@ -146,6 +146,15 @@ AudioEnginePrivate::onStateChanged( Phonon::State newState, Phonon::State oldSta
|
|||||||
q_ptr->stop();
|
q_ptr->stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We did not expect a Stop here, so do not go to the next track
|
||||||
|
// but change the AudioEngine state
|
||||||
|
//
|
||||||
|
// A possible scenario where we can reach this is point if we pause
|
||||||
|
// an stream that cannot be paused.
|
||||||
|
q_ptr->setState( AudioEngine::Stopped );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user