mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
- Fix crash when calling add-next and cur_playing/cur_streaming are NULL
- Append songs after cur_streaming
This commit is contained in:
@@ -3429,9 +3429,9 @@ queue_add_next(struct player_command *cmd)
|
|||||||
if (!ps_shuffle)
|
if (!ps_shuffle)
|
||||||
ps_shuffle = ps;
|
ps_shuffle = ps;
|
||||||
|
|
||||||
if (source_head)
|
if (source_head && cur_streaming)
|
||||||
{
|
{
|
||||||
ps_playing = cur_playing ? cur_playing : cur_streaming;
|
ps_playing = cur_streaming;
|
||||||
|
|
||||||
// Insert ps after ps_playing
|
// Insert ps after ps_playing
|
||||||
ps->pl_prev->pl_next = ps_playing->pl_next;
|
ps->pl_prev->pl_next = ps_playing->pl_next;
|
||||||
|
|||||||
Reference in New Issue
Block a user