mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Fix skip to next song while the last song in Up Next is playing
(introduced in a6c2a25
)
This commit is contained in:
parent
ba9af53f4f
commit
05e6402dc6
@ -1085,6 +1085,7 @@ source_reshuffle(void)
|
|||||||
|
|
||||||
source_shuffle(head, tail);
|
source_shuffle(head, tail);
|
||||||
|
|
||||||
|
// Setting shuffle_head to the current song (head) will show all reshuffled songs in the playlist
|
||||||
if (repeat == REPEAT_ALL)
|
if (repeat == REPEAT_ALL)
|
||||||
shuffle_head = head;
|
shuffle_head = head;
|
||||||
}
|
}
|
||||||
@ -1230,7 +1231,12 @@ source_next(int force)
|
|||||||
if (cur_streaming && (ps == shuffle_head))
|
if (cur_streaming && (ps == shuffle_head))
|
||||||
{
|
{
|
||||||
source_reshuffle();
|
source_reshuffle();
|
||||||
ps = shuffle_head;
|
|
||||||
|
/* After source_reshuffle with "repeat all", shuffle_head is (re-)set to cur_streaming,
|
||||||
|
* therefor get the next song in queue and set the start of the playlist to this song.
|
||||||
|
*/
|
||||||
|
ps = cur_streaming->shuffle_next;
|
||||||
|
shuffle_head = ps;
|
||||||
}
|
}
|
||||||
|
|
||||||
limit = shuffle_head;
|
limit = shuffle_head;
|
||||||
|
Loading…
Reference in New Issue
Block a user