mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-26 15:30:58 -04:00
Merge pull request #28 from chme/fixaddnext
Fix crash when calling add-next and cur_playing/cur_streaming are NULL
This commit is contained in:
commit
66a8cad434
@ -3429,9 +3429,9 @@ queue_add_next(struct player_command *cmd)
|
||||
if (!ps_shuffle)
|
||||
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
|
||||
ps->pl_prev->pl_next = ps_playing->pl_next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user