lib/upnp/ContentDirectoryService: remove unused fields
This commit is contained in:
parent
d9fb152b95
commit
b9a7a9981e
|
@ -19,17 +19,17 @@
|
|||
|
||||
#include <upnptools.h>
|
||||
|
||||
using std::string_view_literals::operator""sv;
|
||||
|
||||
ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
|
||||
const UPnPService &service) noexcept
|
||||
:m_actionURL(uri_apply_base(service.controlURL, device.URLBase)),
|
||||
m_serviceType(service.serviceType),
|
||||
m_deviceId(device.UDN),
|
||||
m_friendlyName(device.friendlyName),
|
||||
m_manufacturer(device.manufacturer),
|
||||
m_modelName(device.modelName),
|
||||
m_rdreqcnt(200)
|
||||
{
|
||||
if (m_modelName == "MediaTomb") {
|
||||
if (device.modelName == "MediaTomb"sv) {
|
||||
// Readdir by 200 entries is good for most, but MediaTomb likes
|
||||
// them really big. Actually 1000 is better but I don't dare
|
||||
m_rdreqcnt = 500;
|
||||
|
|
|
@ -34,8 +34,6 @@ class ContentDirectoryService {
|
|||
std::string m_serviceType;
|
||||
std::string m_deviceId;
|
||||
std::string m_friendlyName;
|
||||
std::string m_manufacturer;
|
||||
std::string m_modelName;
|
||||
|
||||
int m_rdreqcnt; // Slice size to use when reading
|
||||
|
||||
|
|
Loading…
Reference in New Issue