From 23f2217e765e14ad2c2a4192d8c57839d657ac6b Mon Sep 17 00:00:00 2001 From: Holger Steinhaus Date: Thu, 12 Nov 2015 11:05:05 +0100 Subject: do not try any CAM steal voodoo if not at least one CAM is present. This change resolves the nasty "retrying" message generated by VDR's cDevice::SwitchChannel() --- mcli.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mcli.c') diff --git a/mcli.c b/mcli.c index 1455e1c..c29b2c7 100644 --- a/mcli.c +++ b/mcli.c @@ -122,6 +122,7 @@ cPluginMcli::cPluginMcli (void) m_recv_init_done = 0; m_mld_init_done = 0; m_api_init_done = 0; + m_cam_present = false; memset (m_cam_pool, 0, sizeof (cam_pool_t) * CAM_POOL_MAX); for(i=0; icam[j].flags) { case CA_SINGLE: case CA_MULTI_SID: + m_cam_present = true; + dsyslog("Found CAM"); cp->max = 1; break; case CA_MULTI_TRANSPONDER: + dsyslog("Found CAM"); + m_cam_present = true; cp->max = nci->cam[j].max_sids; break; } -- cgit v1.2.3