mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[dacp] bug fix - play item from 'up next' when stopped
This commit is contained in:
parent
c1373394a8
commit
48526c2ab7
@ -1296,10 +1296,10 @@ dacp_reply_cue_play(struct httpd_request *hreq)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Play from Up Next queue */
|
/* Play from Up Next queue */
|
||||||
if (status.status == PLAY_STOPPED && pos > 0)
|
if (status.status == PLAY_STOPPED)
|
||||||
pos--;
|
queue_item = db_queue_fetch_bypos(pos, status.shuffle);
|
||||||
|
else
|
||||||
queue_item = db_queue_fetch_byposrelativetoitem(pos, status.item_id, status.shuffle);
|
queue_item = db_queue_fetch_byposrelativetoitem(pos, status.item_id, status.shuffle);
|
||||||
if (!queue_item)
|
if (!queue_item)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_DACP, "Could not fetch item from queue: pos=%d, now playing=%d\n", pos, status.item_id);
|
DPRINTF(E_LOG, L_DACP, "Could not fetch item from queue: pos=%d, now playing=%d\n", pos, status.item_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user