src/zapit/src/capmt.cpp dont stop decoding if record stops, this break overlapped record on cst

Origin commit data
------------------
Commit: 472cc578fe
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-07 (Tue, 07 Nov 2017)
This commit is contained in:
Jacek Jendrzej
2017-11-07 16:36:15 +01:00
parent 7e261c5b5f
commit 38d6ea4cda

View File

@@ -283,14 +283,14 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
mode, start ? "START" : "STOP", source, oldmask, newmask, force_update);
//INFO("source %d old mask %d new mask %d force update %s", source, oldmask, newmask, force_update ? "yes" : "no");
#if ! HAVE_COOL_HARDWARE
/* stop decoding if record stops unless it's the live channel. TODO:PIP? */
if (mode == RECORD && start == false && source != cDemux::GetSource(0)) {
INFO("MODE!=record(%d) start=false, src %d getsrc %d", mode, source, cDemux::GetSource(0));
cam->sendMessage(NULL, 0, false);
cam->sendCaPmt(channel->getChannelID(), NULL, 0, CA_SLOT_TYPE_ALL);
}
#endif
if((oldmask != newmask) || force_update) {
cam->setCaMask(newmask);
cam->setSource(source);