From 848ed1478866e4d99c10aa962a6d976a6b989536 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 Jun 2014 09:12:51 +0200 Subject: db/proxy: fall back to recursive walk on old libmpdclient/MPD Error message was 'too few arguments for "find"' because the "base" constraint was not supported, and no other constraints remained. --- src/SongFilter.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/SongFilter.hxx') diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index b15127c07..8c46ed5f3 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -109,6 +109,11 @@ public: return items; } + gcc_pure + bool IsEmpty() const { + return items.empty(); + } + /** * Is there at least one item with "fold case" enabled? */ @@ -121,6 +126,12 @@ public: return false; } + /** + * Does this filter contain constraints other than "base"? + */ + gcc_pure + bool HasOtherThanBase() const; + /** * Returns the "base" specification (if there is one) or an * empty string. -- cgit v1.2.3