summaryrefslogtreecommitdiff
path: root/server/connectionIGMP.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/connectionIGMP.c')
-rw-r--r--server/connectionIGMP.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/connectionIGMP.c b/server/connectionIGMP.c
index 1f8f3d8..ab80a6a 100644
--- a/server/connectionIGMP.c
+++ b/server/connectionIGMP.c
@@ -44,9 +44,8 @@ void cConnectionIGMP::Welcome()
{
cDevice *device = NULL;
if (ProvidesChannel(m_Channel, StreamdevServerSetup.IGMPPriority))
- device = GetDevice(m_Channel, StreamdevServerSetup.IGMPPriority);
+ device = SwitchDevice(m_Channel, StreamdevServerSetup.IGMPPriority);
if (device != NULL) {
- device->SwitchChannel(m_Channel, false);
m_LiveStreamer = new cStreamdevLiveStreamer(StreamdevServerSetup.IGMPPriority, this);
if (m_LiveStreamer->SetChannel(m_Channel, m_StreamType)) {
m_LiveStreamer->SetDevice(device);
@@ -61,7 +60,7 @@ void cConnectionIGMP::Welcome()
}
}
else
- esyslog("streamdev-server IGMP: GetDevice failed");
+ esyslog("streamdev-server IGMP: SwitchDevice failed");
}
bool cConnectionIGMP::Close()