summaryrefslogtreecommitdiff
path: root/server/contentDirectory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/contentDirectory.cpp')
-rw-r--r--server/contentDirectory.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/server/contentDirectory.cpp b/server/contentDirectory.cpp
index 6f4b7f4..3f944fe 100644
--- a/server/contentDirectory.cpp
+++ b/server/contentDirectory.cpp
@@ -267,7 +267,8 @@ int cContentDirectory::Browse(Upnp_Action_Request* request){
cMediaManager::BrowseRequest browseRequest;
if(this->ParseStringValue(request->ActionRequest, "ObjectID", browseRequest.objectID)){
- esyslog("UPnP\tInvalid arguments. ObjectID missing or wrong: %s", browseRequest.objectID);
+ esyslog("UPnP\tInvalid arguments. ObjectID missing or wrong: %s",
+ browseRequest.objectID.c_str());
this->SetError(request, UPNP_SOAP_E_INVALID_ARGS);
return request->ErrCode;
}
@@ -285,14 +286,16 @@ int cContentDirectory::Browse(Upnp_Action_Request* request){
}
if(this->ParseStringValue(request->ActionRequest, "Filter", browseRequest.filter)){
- esyslog("UPnP\tInvalid arguments. Filter missing or wrong: %s", browseRequest.filter);
+ esyslog("UPnP\tInvalid arguments. Filter missing or wrong: %s",
+ browseRequest.filter.c_str());
this->SetError(request, UPNP_SOAP_E_INVALID_ARGS);
return request->ErrCode;
}
long startIndex;
if(this->ParseIntegerValue(request->ActionRequest, "StartingIndex", startIndex)){
- esyslog("UPnP\tInvalid arguments. Starting index missing or wrong: %d", browseRequest.startIndex);
+ esyslog("UPnP\tInvalid arguments. Starting index missing or wrong: %d",
+ browseRequest.startIndex);
this->SetError(request, UPNP_SOAP_E_INVALID_ARGS);
return request->ErrCode;
}
@@ -300,14 +303,16 @@ int cContentDirectory::Browse(Upnp_Action_Request* request){
long requestCount;
if(this->ParseIntegerValue(request->ActionRequest, "RequestedCount", requestCount)){
- esyslog("UPnP\tInvalid arguments. Requested count missing or wrong: %d", browseRequest.requestCount);
+ esyslog("UPnP\tInvalid arguments. Requested count missing or wrong: %d",
+ browseRequest.requestCount);
this->SetError(request, UPNP_SOAP_E_INVALID_ARGS);
return request->ErrCode;
}
browseRequest.requestCount = requestCount;
if(this->ParseStringValue(request->ActionRequest, "SortCriteria", browseRequest.sortCriteria)){
- esyslog("UPnP\tInvalid arguments. Sort criteria missing or wrong: %s", browseRequest.sortCriteria);
+ esyslog("UPnP\tInvalid arguments. Sort criteria missing or wrong: %s",
+ browseRequest.sortCriteria.c_str());
this->SetError(request, UPNP_SOAP_E_INVALID_ARGS);
return request->ErrCode;
}
@@ -315,7 +320,8 @@ int cContentDirectory::Browse(Upnp_Action_Request* request){
int ret = mMediaServer->GetManager().Browse(browseRequest);
if(ret!=UPNP_E_SUCCESS){
this->SetError(request, ret);
- esyslog("UPnP\tError while browsing object ID '%s': %s (%d)", browseRequest.objectID, request->ErrStr, request->ErrCode);
+ esyslog("UPnP\tError while browsing object ID '%s': %s (%d)",
+ browseRequest.objectID.c_str(), request->ErrStr, request->ErrCode);
return request->ErrCode;
}