Switch to unified view

a/libupnpp/control/mediarenderer.cxx b/libupnpp/control/mediarenderer.cxx
...
...
67
    for (auto& entry : mydevs)
67
    for (auto& entry : mydevs)
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)
73
{
74
    bool found = false;
75
    for (auto& entry : desc.services) {
76
        if (RenderingControl::isRDCService(entry.serviceType)) {
77
            m_rdc = RDCH(new RenderingControl(desc, entry));
78
            found = true;
79
            break;
80
        }
81
    }
82
    if (!found) {
83
        LOGERR("MediaRenderer::MediaRenderer: RenderingControl service not "
84
               "found in device" << endl);
85
    }
86
87
    found = false;
88
    for (auto& entry : desc.services) {
89
        if (AVTransport::isAVTService(entry.serviceType)) {
90
            m_avt = AVTH(new AVTransport(desc, entry));
91
            found = true;
92
            break;
93
        }
94
    }
95
    if (!found) {
96
        LOGERR("MediaRenderer::MediaRenderer: AVTransport service not "
97
               "found in device" << endl);
98
    }
99
100
}
101
72
bool MediaRenderer::hasOpenHome(const UPnPDeviceDesc& device)
102
bool MediaRenderer::hasOpenHome(const UPnPDeviceDesc& device)
73
{
103
{
74
    return false;
104
    return false;
75
}
105
}
76
106