From 696cd0b6b93abee8f4a542b5e3438152e13da34a Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 1 May 2015 12:21:43 +0200 Subject: [PATCH] [mpd] fix command listplaylists after changing the enum for pl_type --- src/mpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mpd.c b/src/mpd.c index e10af70f..24ffa5e2 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -1816,7 +1816,7 @@ mpd_command_listplaylists(struct evbuffer *evbuf, int argc, char **argv, char ** qp.type = Q_PL; qp.sort = S_PLAYLIST; qp.idx_type = I_NONE; - qp.filter = "(f.type = 0)"; + qp.filter = sqlite3_mprintf("(f.type = %d OR f.type = %d)", PL_PLAIN, PL_SMART); ret = db_query_start(&qp); if (ret < 0) @@ -1848,6 +1848,8 @@ mpd_command_listplaylists(struct evbuffer *evbuf, int argc, char **argv, char ** db_query_end(&qp); + sqlite3_free(qp.filter); + return 0; }