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.
This commit is contained in:
Max Kellermann
2014-06-23 09:12:51 +02:00
parent 4c8a5dfb05
commit 848ed14788
6 changed files with 64 additions and 1 deletions

View File

@@ -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.