move setting query_params.idx_type out of generic queue make function

This commit is contained in:
chme 2015-05-01 10:42:09 +02:00
parent b728db8470
commit 3a495a3d48

View File

@ -770,8 +770,6 @@ player_queue_make(struct query_params *qp, const char *sort)
uint32_t song_length;
int ret;
qp->idx_type = I_NONE;
if (sort)
{
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.limit = 0;
qp.sort = S_NONE;
qp.idx_type = I_NONE;
if (quirk)
{
@ -1092,6 +1091,8 @@ player_queue_make_pl(int plid, uint32_t *id)
else
return NULL;
qp.idx_type = I_NONE;
ps = player_queue_make(&qp, NULL);
if (qp.filter)