From cb919515e4fd56cc80636c00c5ad5ba91076b785 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 28 Feb 2016 11:21:58 +0100 Subject: [PATCH] [dacp] Start playback from selected song in the playqueue if player is stopped --- src/httpd_dacp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 330cd062..dd5eae8d 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1068,6 +1068,9 @@ dacp_reply_cue_play(struct evhttp_request *req, struct evbuffer *evbuf, char **u { /* Play from Up Next queue */ pos += status.pos_pl; + + if (status.status == PLAY_STOPPED && pos > 0) + pos--; } }