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:
parent
71339862b6
commit
ea6d892058
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user