mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix regression in audioengine logic when encountering the end of the playlist
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user