diff options
author | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-12 11:05:05 +0100 |
---|---|---|
committer | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-17 12:51:31 +0100 |
commit | 23f2217e765e14ad2c2a4192d8c57839d657ac6b (patch) | |
tree | 49cdff4acecf9fdba409f207c159069631f44f79 /mcli.c | |
parent | e4ed62f8a9a3bf45932bce845d4c1f888bed121c (diff) | |
download | vdr-plugin-mcli-23f2217e765e14ad2c2a4192d8c57839d657ac6b.tar.gz vdr-plugin-mcli-23f2217e765e14ad2c2a4192d8c57839d657ac6b.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; } |