mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
capmt.cpp: Fix stop decoding
don't stop decoding if record stops, this break overlapped record on cst
Origin commit data
------------------
Commit: 1f86b6aa62
Author: FlatTV <FlatTV@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)
This commit is contained in:
@@ -285,9 +285,8 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
mode, start ? "START" : "STOP", source, oldmask, newmask, force_update, rmode);
|
||||
|
||||
//INFO("source %d old mask %d new mask %d force update %s", source, oldmask, newmask, force_update ? "yes" : "no");
|
||||
|
||||
/* stop decoding if record stops unless it's the live channel. TODO:PIP? */
|
||||
#if ! HAVE_COOL_HARDWARE
|
||||
/* stop decoding if record stops unless it's the live channel. TODO:PIP? */
|
||||
/* all the modes: RECORD, STREAM, PIP except PLAY now stopping here !! */
|
||||
if (mode && start == false && source != cDemux::GetSource(0)) {
|
||||
INFO("MODE not PLAY:(%d) start=false, src %d getsrc %d", mode, source, cDemux::GetSource(0));
|
||||
@@ -300,12 +299,6 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
channel_map.erase(channel_id);
|
||||
}
|
||||
}
|
||||
#else
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user