mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
[dacp] Return the playqueue even if player is stopped
This commit is contained in:
parent
07947a526d
commit
d000ea571b
@ -1564,9 +1564,6 @@ dacp_reply_playqueuecontents(struct evhttp_request *req, struct evbuffer *evbuf,
|
|||||||
{
|
{
|
||||||
player_get_status(&status);
|
player_get_status(&status);
|
||||||
|
|
||||||
/* Get queue and make songlist only if playing or paused */
|
|
||||||
if (status.status != PLAY_STOPPED)
|
|
||||||
{
|
|
||||||
queue = player_queue_get_bypos(abs(span));
|
queue = player_queue_get_bypos(abs(span));
|
||||||
if (queue)
|
if (queue)
|
||||||
{
|
{
|
||||||
@ -1587,7 +1584,6 @@ dacp_reply_playqueuecontents(struct evhttp_request *req, struct evbuffer *evbuf,
|
|||||||
queue_free(queue);
|
queue_free(queue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Playlists are hist, curr and main. */
|
/* Playlists are hist, curr and main. */
|
||||||
playlists = evbuffer_new();
|
playlists = evbuffer_new();
|
||||||
|
Loading…
Reference in New Issue
Block a user