summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device.c b/device.c
index 92405dc..e47014c 100644
--- a/device.c
+++ b/device.c
@@ -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;
}