zapit/src/zapit.cpp: stop pmt update filter in standby, if no record running

This commit is contained in:
[CST] Focus
2012-04-25 15:32:42 +04:00
parent 6acb222311
commit d41d313a31

View File

@@ -1856,7 +1856,7 @@ bool CZapit::StopPlayBack(bool send_pmt)
void CZapit::enterStandby(void)
{
INFO("standby %d", standby);
INFO("standby %d recording %d", standby, (currentMode & RECORD_MODE));
if (standby)
return;
@@ -1867,18 +1867,17 @@ void CZapit::enterStandby(void)
StopPlayBack(true);
if(!(currentMode & RECORD_MODE)) {
pmt_stop_update_filter(&pmt_update_fd);
CFEManager::getInstance()->Close();
}
}
void CZapit::leaveStandby(void)
{
INFO("standby %d", standby);
INFO("standby %d recording %d", standby, (currentMode & RECORD_MODE));
if(!standby)
return;
printf("[zapit] diseqc type = %d\n", diseqcType);
if(!(currentMode & RECORD_MODE)) {
CFEManager::getInstance()->Open();
}