diff options
author | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-12 11:05:05 +0100 |
---|---|---|
committer | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-12 11:05:05 +0100 |
commit | 61a69b2a133fa09f944753f5470ca0e49461b1ee (patch) | |
tree | 9d430b3073d4f5e7eb0d3e4e72c5b323f55336d1 /mcli.c | |
parent | 461afe293abb199d8b84c8976b69f114c115c8ab (diff) | |
download | vdr-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |