aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/ContentDirectoryService.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 20:21:01 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 20:21:01 +0100
commita5e7d0a90fc13ee4b81128483931ccc3bf65d84c (patch)
tree9d24e233e4d0480bb7b78d810ead9e74fada0815 /src/db/upnp/ContentDirectoryService.cxx
parent9fb5134f6402e3fd5bc3e10ff9ec0103b3f1eb59 (diff)
downloadmpd-a5e7d0a90fc13ee4b81128483931ccc3bf65d84c.tar.gz
mpd-a5e7d0a90fc13ee4b81128483931ccc3bf65d84c.tar.xz
mpd-a5e7d0a90fc13ee4b81128483931ccc3bf65d84c.zip
db/upnp: require an empty input capability set
Diffstat (limited to 'src/db/upnp/ContentDirectoryService.cxx')
-rw-r--r--src/db/upnp/ContentDirectoryService.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/upnp/ContentDirectoryService.cxx
index aea8144bf..d49a6b6fd 100644
--- a/src/db/upnp/ContentDirectoryService.cxx
+++ b/src/db/upnp/ContentDirectoryService.cxx
@@ -220,6 +220,8 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl,
std::set<std::string> &result,
Error &error)
{
+ assert(result.empty());
+
IXML_Document *request =
UpnpMakeAction("GetSearchCapabilities", m_serviceType.c_str(),
0,
@@ -244,7 +246,6 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl,
std::string tbuf = ixmlwrap::getFirstElementValue(response, "SearchCaps");
ixmlDocument_free(response);
- result.clear();
if (!tbuf.compare("*")) {
result.insert(result.end(), "*");
} else if (!tbuf.empty()) {