|
a/libupnpp/control/discovery.cxx |
|
b/libupnpp/control/discovery.cxx |
|
... |
|
... |
221 |
char *buf = 0;
|
221 |
char *buf = 0;
|
222 |
// LINE_SIZE is defined by libupnp's upnp.h...
|
222 |
// LINE_SIZE is defined by libupnp's upnp.h...
|
223 |
char contentType[LINE_SIZE];
|
223 |
char contentType[LINE_SIZE];
|
224 |
int code = UpnpDownloadUrlItem(tsk->url.c_str(), &buf, contentType);
|
224 |
int code = UpnpDownloadUrlItem(tsk->url.c_str(), &buf, contentType);
|
225 |
if (code != UPNP_E_SUCCESS) {
|
225 |
if (code != UPNP_E_SUCCESS) {
|
226 |
LOGERR(LibUPnP::errAsString(
|
|
|
227 |
"discoExplorer:UpnpDownloadUrlItem", code) <<
|
226 |
LOGERR(LibUPnP::errAsString("discoExplorer:UpnpDownloadUrlItem", code) <<
|
228 |
" trying to fetch " << tsk->url << endl);
|
227 |
" trying to fetch " << tsk->url << endl);
|
|
|
228 |
delete tsk;
|
229 |
continue;
|
229 |
continue;
|
230 |
}
|
230 |
}
|
231 |
string sdesc(buf);
|
231 |
string sdesc(buf);
|
232 |
free(buf);
|
232 |
free(buf);
|
233 |
|
233 |
|