driver/scanepg.cpp: do not zap, if streaming active;

use common standbyToStandby() from neutrino


Origin commit data
------------------
Commit: 63ce8f2a69
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-03-26 (Wed, 26 Mar 2014)
This commit is contained in:
[CST] Focus
2014-03-26 13:51:39 +04:00
parent f8bb7affaf
commit a9829fc70c

View File

@@ -37,6 +37,7 @@
#include <driver/scanepg.h> #include <driver/scanepg.h>
#include <driver/record.h> #include <driver/record.h>
#include <driver/streamts.h>
#define EPG_RESCAN_TIME (24*60*60) #define EPG_RESCAN_TIME (24*60*60)
@@ -234,16 +235,20 @@ int CEpgScan::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data)
void CEpgScan::EnterStandby() void CEpgScan::EnterStandby()
{ {
if (standby) {
CZapit::getInstance()->SetCurrentChannelID(live_channel_id);
//CZapit::getInstance()->EnablePlayback(true);
g_Zapit->setStandby(true);
g_Sectionsd->setPauseScanning(true);
}
//g_RCInput->killTimer(rescan_timer); //g_RCInput->killTimer(rescan_timer);
if (rescan_timer == 0) if (rescan_timer == 0)
rescan_timer = g_RCInput->addTimer(EPG_RESCAN_TIME*1000ULL*1000ULL, true); rescan_timer = g_RCInput->addTimer(EPG_RESCAN_TIME*1000ULL*1000ULL, true);
INFO("rescan timer id %d", rescan_timer); INFO("rescan timer id %d", rescan_timer);
if (standby) {
CZapit::getInstance()->SetCurrentChannelID(live_channel_id);
#if 0
//CZapit::getInstance()->EnablePlayback(true);
g_Zapit->setStandby(true);
g_Sectionsd->setPauseScanning(true);
#endif
CNeutrinoApp::getInstance()->standbyToStandby();
}
} }
void CEpgScan::Next() void CEpgScan::Next()
@@ -255,7 +260,7 @@ void CEpgScan::Next()
return; return;
if (!standby && CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_standby) if (!standby && CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_standby)
return; return;
if (CRecordManager::getInstance()->RecordingStatus()) if (CRecordManager::getInstance()->RecordingStatus() || CStreamManager::getInstance()->StreamStatus())
return; return;
if (g_settings.epg_scan == 2 && scanmap.empty()) if (g_settings.epg_scan == 2 && scanmap.empty())