From afb19a51531e93fc7d2ab0f2674669b3cda83927 Mon Sep 17 00:00:00 2001 From: leslie Date: Thu, 8 Sep 2011 06:37:53 +0800 Subject: [PATCH] force transfer mode for liveview softcsa --- device-tmpl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device-tmpl.c b/device-tmpl.c index 9e84936..33deb1b 100644 --- a/device-tmpl.c +++ b/device-tmpl.c @@ -179,6 +179,12 @@ bool SCDEVICE::SetChannelDevice(const cChannel *Channel, bool LiveView) { if(cam) cam->Tune(Channel); bool ret=DVBDEVICE::SetChannelDevice(Channel,LiveView); + if(LiveView && IsPrimaryDevice() && Channel->Ca()>=CA_ENCRYPTED_MIN && + !Transferring() && + softcsa && !fullts) { + PRINTF(L_GEN_INFO,"Forcing transfermode on card %s",devId); + DVBDEVICE::SetChannelDevice(Channel,false); // force transfermode + } if(ret && cam) cam->PostTune(); return ret; } -- 2.39.5