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:
parent
d1eeed6a5b
commit
d7d717f2ce
1
NEWS
1
NEWS
|
@ -1,5 +1,6 @@
|
||||||
ver 0.16.4 (2011/??/??)
|
ver 0.16.4 (2011/??/??)
|
||||||
* fix memory leaks
|
* fix memory leaks
|
||||||
|
* don't resume playback when seeking to another song while paused
|
||||||
* decoder:
|
* decoder:
|
||||||
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
|
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
|
||||||
- flac: validate the sample rate when scanning the tag
|
- flac: validate the sample rate when scanning the tag
|
||||||
|
|
|
@ -222,10 +222,12 @@ playlist_seek_song(struct playlist *playlist, unsigned song, float seek_time)
|
||||||
playlist->error_count = 0;
|
playlist->error_count = 0;
|
||||||
|
|
||||||
if (!playlist->playing || (unsigned)playlist->current != i) {
|
if (!playlist->playing || (unsigned)playlist->current != i) {
|
||||||
/* seeking is not within the current song - first
|
/* seeking is not within the current song - prepare
|
||||||
start playing the new song */
|
song change */
|
||||||
|
|
||||||
|
playlist->playing = true;
|
||||||
|
playlist->current = i;
|
||||||
|
|
||||||
playlist_play_order(playlist, i);
|
|
||||||
queued = NULL;
|
queued = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue