1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Fix regression in audioengine logic when encountering the end of the playlist

This commit is contained in:
Jeff Mitchell 2011-08-28 02:16:27 -04:00
parent 71339862b6
commit ea6d892058

View File

@ -552,7 +552,7 @@ AudioEngine::playlistNextTrackReady()
return;
m_waitingOnNewTrack = false;
next();
loadNextTrack();
}
@ -604,7 +604,14 @@ AudioEngine::onStateChanged( Phonon::State newState, Phonon::State oldState )
{
m_expectStop = false;
tDebug( LOGEXTRA ) << "Finding next track.";
next();
if ( canGoNext() )
loadNextTrack();
else
{
if ( !m_playlist.isNull() && m_playlist.data()->retryMode() == Tomahawk::PlaylistInterface::Retry )
m_waitingOnNewTrack = true;
stop();
}
}
}
}