mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
zapit/src/zapit.cpp: stop pmt update filter in standby, if no record running
This commit is contained in:
@@ -1856,7 +1856,7 @@ bool CZapit::StopPlayBack(bool send_pmt)
|
|||||||
|
|
||||||
void CZapit::enterStandby(void)
|
void CZapit::enterStandby(void)
|
||||||
{
|
{
|
||||||
INFO("standby %d", standby);
|
INFO("standby %d recording %d", standby, (currentMode & RECORD_MODE));
|
||||||
if (standby)
|
if (standby)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -1867,18 +1867,17 @@ void CZapit::enterStandby(void)
|
|||||||
StopPlayBack(true);
|
StopPlayBack(true);
|
||||||
|
|
||||||
if(!(currentMode & RECORD_MODE)) {
|
if(!(currentMode & RECORD_MODE)) {
|
||||||
|
pmt_stop_update_filter(&pmt_update_fd);
|
||||||
CFEManager::getInstance()->Close();
|
CFEManager::getInstance()->Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CZapit::leaveStandby(void)
|
void CZapit::leaveStandby(void)
|
||||||
{
|
{
|
||||||
INFO("standby %d", standby);
|
INFO("standby %d recording %d", standby, (currentMode & RECORD_MODE));
|
||||||
if(!standby)
|
if(!standby)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
printf("[zapit] diseqc type = %d\n", diseqcType);
|
|
||||||
|
|
||||||
if(!(currentMode & RECORD_MODE)) {
|
if(!(currentMode & RECORD_MODE)) {
|
||||||
CFEManager::getInstance()->Open();
|
CFEManager::getInstance()->Open();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user