generate correct camask

Conflicts:
	src/driver/record.cpp
This commit is contained in:
DboxOldie
2021-01-23 23:18:06 +01:00
committed by Thilo Graf
parent e6cc52942b
commit 4fb1d19406
2 changed files with 5 additions and 3 deletions

View File

@@ -336,13 +336,14 @@ bool CRecordInstance::Stop(bool remove_event)
printf("%s: file %s.ts\n", __FUNCTION__, filename);
SaveXml();
/* Stop do close fd - if started */
/* Stop do close fd - if started */
record->Stop();
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if(!autoshift)
CFEManager::getInstance()->unlockFrontend(frontend, true);//FIXME testing
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if (autoshift && g_settings.timeshift_delete)
CMoviePlayerGui::getInstance().deleteTimeshift();

View File

@@ -217,12 +217,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());