From a59d45bba29bb61d8271bca6a31aa35329b20a15 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 27 Feb 2013 11:02:53 +0400 Subject: [PATCH] driver/record.cpp: stop PiP before starting record of current PiP channel --- src/driver/record.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 6afb99060..94a0d916a 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -1613,13 +1613,21 @@ bool CRecordManager::CutBackNeutrino(const t_channel_id channel_id, CFrontend * } if (unlock) CFEManager::getInstance()->unlockFrontend(live_fe); - } else { + } +#ifdef DYNAMIC_DEMUX + else { frontend = CFEManager::getInstance()->allocateFE(channel, true); } printf("%s: record demux: %d\n", __FUNCTION__, channel->getRecordDemux()); if (channel->getRecordDemux() == 0) ret = false; +#endif if(ret) { +#ifdef BOXMODEL_APOLLO + if (CZapit::getInstance()->GetPipChannelID() == channel_id) + CZapit::getInstance()->StopPip(); +#endif + if(StopSectionsd) { printf("%s: g_Sectionsd->setPauseScanning(true)\n", __FUNCTION__); g_Sectionsd->setPauseScanning(true);