mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
neutrino: wait a little bit to decode CI channel before starting record
Origin commit data
------------------
Commit: bdcd66db67
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-03-24 (Tue, 24 Mar 2020)
Origin message was:
------------------
- neutrino: wait a little bit to decode CI channel before starting record
This commit is contained in:
@@ -4031,7 +4031,26 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
||||
if(g_settings.ci_rec_zapto){
|
||||
CZapitChannel * ch = CServiceManager::getInstance()->FindChannel(eventinfo->channel_id);
|
||||
if (ch && ch->bUseCI && (eventinfo->channel_id != live_channel_id))
|
||||
{
|
||||
zapTo(eventinfo->channel_id);
|
||||
|
||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, LOCALE_CI_TRY_DECODE);
|
||||
hintBox.paint();
|
||||
|
||||
int t = time_monotonic();
|
||||
while (videoDecoder->getBlank())
|
||||
{
|
||||
usleep(100);
|
||||
if (time_monotonic() - t > 15)
|
||||
{
|
||||
// can't decode channel within 15 seconds
|
||||
break;
|
||||
}
|
||||
}
|
||||
g_RCInput->clearRCMsg();
|
||||
|
||||
hintBox.hide();
|
||||
}
|
||||
}
|
||||
if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) {
|
||||
CRecordManager::getInstance()->Record(eventinfo);
|
||||
|
Reference in New Issue
Block a user