|
a/src/httpfs.cxx |
|
b/src/httpfs.cxx |
|
... |
|
... |
17 |
|
17 |
|
18 |
#include <unordered_map>
|
18 |
#include <unordered_map>
|
19 |
#include <string>
|
19 |
#include <string>
|
20 |
|
20 |
|
21 |
#include "libupnpp/log.hxx"
|
21 |
#include "libupnpp/log.hxx"
|
|
|
22 |
#include "libupnpp/upnpavutils.hxx"
|
22 |
|
23 |
|
23 |
#include "upmpd.hxx"
|
24 |
#include "upmpd.hxx"
|
24 |
#include "upmpdutils.hxx"
|
25 |
#include "upmpdutils.hxx"
|
25 |
#include "smallut.h"
|
26 |
#include "smallut.h"
|
26 |
#include "pathut.h"
|
27 |
#include "pathut.h"
|
|
... |
|
... |
204 |
string protofile(path_cat(datadir, "protocolinfo.txt"));
|
205 |
string protofile(path_cat(datadir, "protocolinfo.txt"));
|
205 |
if (!read_protocolinfo(protofile, enableL16, g_protocolInfo)) {
|
206 |
if (!read_protocolinfo(protofile, enableL16, g_protocolInfo)) {
|
206 |
LOGFAT("Failed reading protocol info from " << protofile << endl);
|
207 |
LOGFAT("Failed reading protocol info from " << protofile << endl);
|
207 |
return false;
|
208 |
return false;
|
208 |
}
|
209 |
}
|
209 |
protocolInfoToFormats(g_protocolInfo, g_supportedFormats);
|
210 |
|
|
|
211 |
vector<ProtocolinfoEntry> vpe;
|
|
|
212 |
parseProtocolInfo(g_protocolInfo, vpe);
|
|
|
213 |
for (const auto& it : vpe) {
|
|
|
214 |
g_supportedFormats.insert(it.contentFormat);
|
|
|
215 |
}
|
210 |
|
216 |
|
211 |
string reason;
|
217 |
string reason;
|
212 |
string icondata;
|
218 |
string icondata;
|
213 |
if (!iconpath.empty()) {
|
219 |
if (!iconpath.empty()) {
|
214 |
if (!file_to_string(iconpath, icondata, &reason)) {
|
220 |
if (!file_to_string(iconpath, icondata, &reason)) {
|