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 /device.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 'device.c')
-rw-r--r-- | device.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -538,10 +538,11 @@ bool cMcliDevice::SetChannelDevice (const cChannel * Channel, bool LiveView) } else { m_disabletimeout = TEMP_DISABLE_TIMEOUT_DEFAULT; } - bool cam_force=true; + bool cam_force = m_mcli && m_mcli->CAMPresent() && LiveView; if(cam_force && !CheckCAM(Channel, true)) { #ifdef DEBUG_TUNE dsyslog("Mcli::%s: No CAM on DVB %d available even after tried to steal one\n", __FUNCTION__, CardIndex () + 1); + dsyslog("CAMPresent: %d\n", m_mcli->CAMPresent()); #endif return false; } |