1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02: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 ); emit error( UnknownError );
setState( Error ); setState( Error );
return;
} }
if ( newState == Phonon::PlayingState ) 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; tDebug() << "Phonon state now:" << newState;
if ( m_stateQueue.count() ) if ( m_stateQueue.count() )