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:
@@ -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() )
|
||||||
|
Reference in New Issue
Block a user