From d3fe586d5bba19c8ed0161a7299933616164c5ad Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Fri, 22 Jan 2010 19:02:29 +0100 Subject: [PATCH] Remove a special case for playlist #1 Not needed anymore, now that playlist #1 has been turned into a smart playlist. --- src/httpd_daap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index fe1d8f1f..9b59353f 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -1170,13 +1170,13 @@ daap_reply_songlist_generic(struct evhttp_request *req, struct evbuffer *evbuf, memset(&qp, 0, sizeof(struct query_params)); get_query_params(query, &qp); - if (playlist < 2) - qp.type = Q_ITEMS; - else + if (playlist != -1) { qp.type = Q_PLITEMS; qp.pl_id = playlist; } + else + qp.type = Q_ITEMS; ret = db_query_start(&qp); if (ret < 0)