|
a/src/upmpd.cxx |
|
b/src/upmpd.cxx |
|
... |
|
... |
164 |
}
|
164 |
}
|
165 |
|
165 |
|
166 |
for (vector<UPnPClient::UPnPResource>::const_iterator it =
|
166 |
for (vector<UPnPClient::UPnPResource>::const_iterator it =
|
167 |
dobj.m_resources.begin(); it != dobj.m_resources.end(); it++) {
|
167 |
dobj.m_resources.begin(); it != dobj.m_resources.end(); it++) {
|
168 |
if (!it->m_uri.compare(uri)) {
|
168 |
if (!it->m_uri.compare(uri)) {
|
169 |
string cf = stringtolower(resourceContentFormat(*it));
|
169 |
ProtocolinfoEntry e;
|
|
|
170 |
if (!it->protoInfo(e)) {
|
|
|
171 |
LOGERR("checkContentFormat: resource has no protocolinfo\n");
|
|
|
172 |
return false;
|
|
|
173 |
}
|
|
|
174 |
string cf = e.contentFormat;
|
170 |
if (g_supportedFormats.find(cf) == g_supportedFormats.end()) {
|
175 |
if (g_supportedFormats.find(cf) == g_supportedFormats.end()) {
|
171 |
LOGERR("checkContentFormat: unsupported:: " << cf << endl);
|
176 |
LOGERR("checkContentFormat: unsupported:: " << cf << endl);
|
172 |
return false;
|
177 |
return false;
|
173 |
} else {
|
178 |
} else {
|
174 |
LOGDEB("checkContentFormat: supported: " << cf << endl);
|
179 |
LOGDEB("checkContentFormat: supported: " << cf << endl);
|