Commit 4db51eec authored by Max Kellermann's avatar Max Kellermann

playlist: call syncPlaylistWithQueue() only in the event handler

Don't call syncPlaylistWithQueue() in nextSongInPlaylist() and previousSongInPlaylist(). This is a relic from the time when there was no event, and was a workaround to the timing problem.
parent 8d320587
......@@ -608,8 +608,6 @@ nextSongInPlaylist(struct playlist *playlist)
assert(!queue_is_empty(&playlist->queue));
assert(queue_valid_order(&playlist->queue, playlist->current));
syncPlaylistWithQueue(playlist);
playlist->stop_on_error = false;
/* determine the next song from the queue's order list */
......@@ -819,8 +817,6 @@ void previousSongInPlaylist(struct playlist *playlist)
if (!playlist->playing)
return;
syncPlaylistWithQueue(playlist);
if (diff && getPlayerElapsedTime() > PLAYLIST_PREV_UNLESS_ELAPSED) {
/* re-start playing the current song (just like the
"prev" button on CD players) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment