From c2ba2f6779e8e48f8dcf7cd5e7afaf7f877f782b Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 31 Oct 2015 06:18:05 +0100 Subject: [PATCH] [dacp] Fix playing from history for Remote --- src/httpd_dacp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index cc0e6d2d..2edce3f6 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1044,9 +1044,9 @@ dacp_reply_cue_play(struct evhttp_request *req, struct evbuffer *evbuf, char **u hist = 0; if ((param = evhttp_find_header(query, "command")) && (strcmp(param, "playnow") == 0)) { - /* If mode parameter is -1, the index is relative to the history queue, otherwise to the Up Next queue */ + /* If mode parameter is -1 or 1, the index is relative to the history queue, otherwise to the Up Next queue */ param = evhttp_find_header(query, "mode"); - if (param && (strcmp(param, "-1") == 0)) + if (param && ((strcmp(param, "-1") == 0) || (strcmp(param, "1") == 0))) { /* Play from history queue */ hist = 1;