From 1a12dfdf49acd027ffb7d7393cbea940dee7f9dc Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sat, 23 Jan 2021 23:18:06 +0100 Subject: [PATCH] fix overlapping recording timers (thx DboxOldie !!) Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/01dee03a7a4bd9a1a263a822e84e6838f6d9ce51 Author: TangoCash Date: 2021-01-23 (Sat, 23 Jan 2021) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/capmt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp index 2e4fc975c..0b2180efc 100644 --- a/src/zapit/src/capmt.cpp +++ b/src/zapit/src/capmt.cpp @@ -293,7 +293,11 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start /* 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)); - cam->sendMessage(NULL, 0, false); + /* Possibly beware stopping cam in case of overlapping timers on same channel */ + if (newmask != oldmask) + { + cam->sendMessage(NULL, 0, false); + } /* clean up channel_map with stopped record/stream/pip services NOT live-tv */ it = channel_map.find(channel_id); if(it != channel_map.end() && newmask != 0 && it->second != cam)