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:
parent
cbda055c89
commit
4b059293d1
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user