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.
This commit is contained in:
parent
8d3205871c
commit
4db51eeccd
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user