|
a/libupnpp/control/mediarenderer.cxx |
|
b/libupnpp/control/mediarenderer.cxx |
|
... |
|
... |
68 |
devices.push_back(entry.second);
|
68 |
devices.push_back(entry.second);
|
69 |
return !devices.empty();
|
69 |
return !devices.empty();
|
70 |
}
|
70 |
}
|
71 |
|
71 |
|
72 |
MediaRenderer::MediaRenderer(const UPnPDeviceDesc& desc)
|
72 |
MediaRenderer::MediaRenderer(const UPnPDeviceDesc& desc)
|
|
|
73 |
: Device(desc)
|
73 |
{
|
74 |
{
|
74 |
bool found = false;
|
75 |
bool found = false;
|
75 |
for (auto& entry : desc.services) {
|
76 |
for (auto& entry : desc.services) {
|
76 |
if (RenderingControl::isRDCService(entry.serviceType)) {
|
77 |
if (RenderingControl::isRDCService(entry.serviceType)) {
|
77 |
m_rdc = RDCH(new RenderingControl(desc, entry));
|
78 |
m_rdc = RDCH(new RenderingControl(desc, entry));
|