mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Merge pull request #192 from chme/history
[dacp] Fix playing from history for Remote
This commit is contained in:
commit
6ba350e406
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user