generate correct camask

Origin commit data
------------------
Commit: 814cc525b1
Author: DboxOldie <DboxOldie@users.noreply.github.com>
Date: 2021-01-23 (Sat, 23 Jan 2021)
This commit is contained in:
DboxOldie
2021-01-23 23:18:06 +01:00
committed by vanhofen
parent 9c522728e7
commit d14564fd25
2 changed files with 5 additions and 3 deletions

View File

@@ -341,11 +341,12 @@ bool CRecordInstance::Stop(bool remove_event)
/* Stop do close fd - if started */
record->Stop();
if(!autoshift)
CFEManager::getInstance()->unlockFrontend(frontend, true);//FIXME testing
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if(!autoshift)
CFEManager::getInstance()->unlockFrontend(frontend, true);//FIXME testing
if (autoshift && move_ts2rec)
CMoviePlayerGui::getInstance().moveTimeshift();
else if (autoshift && g_settings.timeshift_delete)

View File

@@ -220,12 +220,13 @@ void CStreamInstance::run()
Send(r);
}
CCamManager::getInstance()->Stop(channel_id, CCamManager::STREAM);
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
if(frontend)
CFEManager::getInstance()->unlockFrontend(frontend);
//CZapit::getInstance()->SetRecordMode(false);
#endif
CCamManager::getInstance()->Stop(channel_id, CCamManager::STREAM);
printf("CStreamInstance::run: exiting %" PRIx64 " (%d fds)\n", channel_id, (int)fds.size());