mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[dacp] Only return requested number of queue item (fixes #556)
This commit is contained in:
parent
2c1f2f1b15
commit
3ca5402638
@ -1749,8 +1749,7 @@ dacp_reply_playqueuecontents(struct httpd_request *hreq)
|
||||
if (ret < 0)
|
||||
goto error;
|
||||
|
||||
//FIXME [queue] Check count value
|
||||
while ((db_queue_enum_fetch(&qp, &queue_item) == 0) && (queue_item.id > 0))
|
||||
while ((db_queue_enum_fetch(&qp, &queue_item) == 0) && (queue_item.id > 0) && (count < span))
|
||||
{
|
||||
if (status.item_id == 0 || status.item_id == queue_item.id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user