From 3a495a3d48b134a9ecb42807724f79a0cbf0fed5 Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 1 May 2015 10:42:09 +0200 Subject: [PATCH] move setting query_params.idx_type out of generic queue make function --- src/player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index 4bbd659a..88ee6eec 100644 --- a/src/player.c +++ b/src/player.c @@ -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)