From: leslie Date: Wed, 7 Sep 2011 22:37:53 +0000 (+0800) Subject: force transfer mode for liveview softcsa X-Git-Tag: upstream/620~28 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=afb19a51531e93fc7d2ab0f2674669b3cda83927;p=sasc-ng.git force transfer mode for liveview softcsa --- 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; }