diff options
author | Frank Schmirler <vdr@schmirler.de> | 2012-12-16 13:09:29 +0100 |
---|---|---|
committer | Frank Schmirler <vdr@schmirler.de> | 2012-12-16 13:09:29 +0100 |
commit | 0fb7076192f60472cd5885767898d79400adfa81 (patch) | |
tree | b61926a7e0218c3694c8377ea276f1f89406a65f | |
parent | f5da0ea1fcad8078b78fe03d49b88fc92daecf35 (diff) | |
download | vdr-plugin-streamdev-0fb7076192f60472cd5885767898d79400adfa81.tar.gz vdr-plugin-streamdev-0fb7076192f60472cd5885767898d79400adfa81.tar.bz2 |
Use std::map at() is not available in old libs. Use find()
-rw-r--r-- | server/connectionHTTP.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c index f2d8e0e..b7fcfa8 100644 --- a/server/connectionHTTP.c +++ b/server/connectionHTTP.c @@ -340,9 +340,9 @@ cChannelList* cConnectionHTTP::ChannelListFromString(const std::string& Path, co if (iterator) { if (Filebase.empty() || Fileext.compare(".htm") == 0 || Fileext.compare(".html") == 0) { std::string self = Filebase + Fileext; - const std::string& query = Headers().at("QUERY_STRING"); - if (!query.empty()) - self += '?' + query; + tStrStrMap::const_iterator it = Headers().find("QUERY_STRING"); + if (it != Headers().end() && !it->second.empty()) + self += '?' + it->second; return new cHtmlChannelList(iterator, m_StreamType, self.c_str(), groupTarget.c_str()); } else if (Fileext.compare(".m3u") == 0) { std::string base; |