mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
capmt.cpp: Fix stop decoding
don't stop decoding if record stops, this break overlapped record on cst
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);
|
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");
|
//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
|
#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 !! */
|
/* all the modes: RECORD, STREAM, PIP except PLAY now stopping here !! */
|
||||||
if (mode && start == false && source != cDemux::GetSource(0)) {
|
if (mode && start == false && source != cDemux::GetSource(0)) {
|
||||||
INFO("MODE not PLAY:(%d) start=false, src %d getsrc %d", mode, 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);
|
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
|
#endif
|
||||||
|
|
||||||
if((oldmask != newmask) || force_update) {
|
if((oldmask != newmask) || force_update) {
|
||||||
|
Reference in New Issue
Block a user