summaryrefslogtreecommitdiff
path: root/mcli.c
diff options
context:
space:
mode:
authorHolger Steinhaus <hsteinhaus@gmx.de>2015-11-12 11:05:05 +0100
committerHolger Steinhaus <hsteinhaus@gmx.de>2015-11-12 11:05:05 +0100
commit61a69b2a133fa09f944753f5470ca0e49461b1ee (patch)
tree9d430b3073d4f5e7eb0d3e4e72c5b323f55336d1 /mcli.c
parent461afe293abb199d8b84c8976b69f114c115c8ab (diff)
downloadvdr-plugin-mcli-61a69b2a133fa09f944753f5470ca0e49461b1ee.tar.gz
vdr-plugin-mcli-61a69b2a133fa09f944753f5470ca0e49461b1ee.tar.bz2
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()
Diffstat (limited to 'mcli.c')
-rw-r--r--mcli.c5
1 files changed, 5 insertions, 0 deletions
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; i<CAM_POOL_MAX; i++) {
m_cam_pool[i].max = -1;
@@ -327,9 +328,13 @@ int cPluginMcli::CAMPoolAdd(netceiver_info_t *nci)
switch (nci->cam[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;
}