mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -04:00
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);
|
ret = evhttp_bind_socket(evhttpd, http_addr, http_port);
|
||||||
if (ret < 0)
|
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;
|
goto bind_fail;
|
||||||
}
|
}
|
||||||
|
@ -576,6 +576,10 @@ queue_new_byindex(struct queue *queue, unsigned int index, unsigned int count, c
|
|||||||
qii->shuffle_prev = qii;
|
qii->shuffle_prev = qii;
|
||||||
|
|
||||||
queue_add(qi, 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++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user