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 /device.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 '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; } |