1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* Clear command queue when Phonon reports an error.

This commit is contained in:
Christian Muehlhaeuser 2012-05-24 12:34:52 +02:00
parent cbda055c89
commit 4b059293d1

View File

@ -686,8 +686,6 @@ AudioEngine::onStateChanged( Phonon::State newState, Phonon::State oldState )
emit error( UnknownError );
setState( Error );
return;
}
if ( newState == Phonon::PlayingState )
{
@ -732,7 +730,7 @@ AudioEngine::onStateChanged( Phonon::State newState, Phonon::State oldState )
}
}
if ( newState == Phonon::PausedState || newState == Phonon::PlayingState )
if ( newState == Phonon::PausedState || newState == Phonon::PlayingState || newState == Phonon::ErrorState )
{
tDebug() << "Phonon state now:" << newState;
if ( m_stateQueue.count() )