mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 08:33:23 -05:00
move setting query_params.idx_type out of generic queue make function
This commit is contained in:
parent
b728db8470
commit
3a495a3d48
@ -770,8 +770,6 @@ player_queue_make(struct query_params *qp, const char *sort)
|
|||||||
uint32_t song_length;
|
uint32_t song_length;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
qp->idx_type = I_NONE;
|
|
||||||
|
|
||||||
if (sort)
|
if (sort)
|
||||||
{
|
{
|
||||||
if (strcmp(sort, "name") == 0)
|
if (strcmp(sort, "name") == 0)
|
||||||
@ -960,6 +958,7 @@ player_queue_make_daap(struct player_source **head, const char *query, const cha
|
|||||||
qp.offset = 0;
|
qp.offset = 0;
|
||||||
qp.limit = 0;
|
qp.limit = 0;
|
||||||
qp.sort = S_NONE;
|
qp.sort = S_NONE;
|
||||||
|
qp.idx_type = I_NONE;
|
||||||
|
|
||||||
if (quirk)
|
if (quirk)
|
||||||
{
|
{
|
||||||
@ -1092,6 +1091,8 @@ player_queue_make_pl(int plid, uint32_t *id)
|
|||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
qp.idx_type = I_NONE;
|
||||||
|
|
||||||
ps = player_queue_make(&qp, NULL);
|
ps = player_queue_make(&qp, NULL);
|
||||||
|
|
||||||
if (qp.filter)
|
if (qp.filter)
|
||||||
|
Loading…
Reference in New Issue
Block a user