playlist_control: don't resume playback when seeking to another song while paused
Use a shortcut in playlist_seek_song(), don't call playlist_play_order() because that would reset the "paused" state.
This commit is contained in:
@@ -222,10 +222,12 @@ playlist_seek_song(struct playlist *playlist, unsigned song, float seek_time)
|
||||
playlist->error_count = 0;
|
||||
|
||||
if (!playlist->playing || (unsigned)playlist->current != i) {
|
||||
/* seeking is not within the current song - first
|
||||
start playing the new song */
|
||||
/* seeking is not within the current song - prepare
|
||||
song change */
|
||||
|
||||
playlist->playing = true;
|
||||
playlist->current = i;
|
||||
|
||||
playlist_play_order(playlist, i);
|
||||
queued = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user