Merge pull request #189 from chme/mpd
Fix item-id in mpd commands "playlistid", "playlistinfo", "plchanges"
This commit is contained in:
commit
43893dff48
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue