Merge pull request #189 from chme/mpd

Fix item-id in mpd commands "playlistid", "playlistinfo", "plchanges"
This commit is contained in:
ejurgensen 2015-10-24 09:05:58 +02:00
commit 43893dff48
2 changed files with 5 additions and 1 deletions

View File

@ -4559,7 +4559,7 @@ int mpd_init(void)
ret = evhttp_bind_socket(evhttpd, http_addr, http_port);
if (ret < 0)
{
DPRINTF(E_FATAL, L_MPD, "Could not bind HTTP artwork server at %s:%d\n", http_addr, port);
DPRINTF(E_FATAL, L_MPD, "Could not bind HTTP artwork server at %s:%d\n", http_addr, http_port);
goto bind_fail;
}

View File

@ -576,6 +576,10 @@ queue_new_byindex(struct queue *queue, unsigned int index, unsigned int count, c
qii->shuffle_prev = qii;
queue_add(qi, qii);
// queue_add(...) changes the queue item-id, reset the item-id to the original value
qii->item_id = item->item_id;
i++;
}