mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Clear command queue when Phonon reports an error.
This commit is contained in:
@@ -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() )
|
||||
|
Reference in New Issue
Block a user