mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
zapit/src/zapit.cpp: prevent 'rotor moving' message for ZapForEpg
Origin commit data
------------------
Commit: 78fd4a1204
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-07 (Mon, 07 Oct 2013)
This commit is contained in:
@@ -158,7 +158,7 @@ class CZapit : public OpenThreads::Thread
|
||||
void RestoreChannelPids(CZapitChannel* channel);
|
||||
//void ConfigFrontend();
|
||||
|
||||
bool TuneChannel(CFrontend *frontend, CZapitChannel * channel, bool &transponder_change);
|
||||
bool TuneChannel(CFrontend *frontend, CZapitChannel * channel, bool &transponder_change, bool send_event = true);
|
||||
bool ParsePatPmt(CZapitChannel * channel);
|
||||
|
||||
bool send_data_count(int connfd, int data_count);
|
||||
|
@@ -417,7 +417,7 @@ audio_map_set_t * CZapit::GetSavedPids(const t_channel_id channel_id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &transponder_change)
|
||||
bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &transponder_change, bool send_event)
|
||||
{
|
||||
if(channel == NULL || frontend == NULL)
|
||||
return false;
|
||||
@@ -427,7 +427,8 @@ bool CZapit::TuneChannel(CFrontend * frontend, CZapitChannel * channel, bool &tr
|
||||
int waitForMotor = frontend->driveToSatellitePosition(channel->getSatellitePosition());
|
||||
if(waitForMotor > 0) {
|
||||
printf("[zapit] waiting %d seconds for motor to turn satellite dish.\n", waitForMotor);
|
||||
SendEvent(CZapitClient::EVT_ZAP_MOTOR, &waitForMotor, sizeof(waitForMotor));
|
||||
if (send_event)
|
||||
SendEvent(CZapitClient::EVT_ZAP_MOTOR, &waitForMotor, sizeof(waitForMotor));
|
||||
for(int i = 0; i < waitForMotor; i++) {
|
||||
sleep(1);
|
||||
if(abort_zapit) {
|
||||
@@ -712,7 +713,7 @@ bool CZapit::ZapForEpg(const t_channel_id channel_id)
|
||||
ERROR("Cannot get frontend\n");
|
||||
return false;
|
||||
}
|
||||
if(!TuneChannel(frontend, newchannel, transponder_change))
|
||||
if(!TuneChannel(frontend, newchannel, transponder_change, false))
|
||||
return false;
|
||||
#if 0
|
||||
if(!ParsePatPmt(newchannel))
|
||||
|
Reference in New Issue
Block a user