From bd4e379f15ebbddfd7748cca4732744c6795211c Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 4 Feb 2017 06:08:01 +0100 Subject: [PATCH] [dacp] Fix requests for cue_play with command = "play" --- src/httpd_dacp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index b3bad157..529709ed 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1099,6 +1099,17 @@ dacp_reply_cue_play(struct evhttp_request *req, struct evbuffer *evbuf, char **u } } } + else + { + queue_item = db_queue_fetch_bypos(pos, status.shuffle); + if (!queue_item) + { + DPRINTF(E_LOG, L_DACP, "Could not fetch item from queue: pos=%d\n", pos); + + dmap_send_error(req, "cacr", "Playback failed to start"); + return; + } + } ret = player_playback_start_byitem(queue_item); free_queue_item(queue_item, 0);