mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
zapit.cpp: remove trailing spaces
Origin commit data
------------------
Commit: 2dcf61f131
Author: GetAway <get-away@t-online.de>
Date: 2021-10-18 (Mon, 18 Oct 2021)
This commit is contained in:
@@ -122,7 +122,7 @@ CZapitClient::bouquetMode bouquetMode = CZapitClient::BM_UPDATEBOUQUETS;
|
||||
static bool update_pmt = true;
|
||||
/******************************************************************************/
|
||||
CZapit * CZapit::zapit = NULL;
|
||||
CZapit::CZapit()
|
||||
CZapit::CZapit()
|
||||
: configfile(',', false)
|
||||
{
|
||||
started = false;
|
||||
@@ -265,7 +265,7 @@ void CZapit::SaveAudioMap()
|
||||
}
|
||||
for (audio_map_iterator_t audio_map_it = audio_map.begin(); audio_map_it != audio_map.end(); audio_map_it++) {
|
||||
fprintf(audio_config_file, "%" PRIx64 " %d %d %d %d %d %d\n", (uint64_t) audio_map_it->first,
|
||||
(int) audio_map_it->second.apid, (int) audio_map_it->second.mode, (int) audio_map_it->second.volume,
|
||||
(int) audio_map_it->second.apid, (int) audio_map_it->second.mode, (int) audio_map_it->second.volume,
|
||||
(int) audio_map_it->second.subpid, (int) audio_map_it->second.ttxpid, (int) audio_map_it->second.ttxpage);
|
||||
}
|
||||
fdatasync(fileno(audio_config_file));
|
||||
@@ -1482,7 +1482,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
||||
if(channel)
|
||||
/* FIXME: the following check is no even remotely accurate */
|
||||
response.status = (channel->getServiceType() != ST_DIGITAL_RADIO_SOUND_SERVICE);
|
||||
|
||||
|
||||
CBasicServer::send_data(connfd, &response, sizeof(response));
|
||||
break;
|
||||
}
|
||||
@@ -1507,7 +1507,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
||||
PrepareChannels();
|
||||
|
||||
current_channel = CServiceManager::getInstance()->FindChannel(cid);
|
||||
ParsePatPmt(current_channel);//reinit pids
|
||||
ParsePatPmt(current_channel);//reinit pids
|
||||
|
||||
SendCmdReady(connfd);
|
||||
SendEvent(CZapitClient::EVT_SERVICES_CHANGED);
|
||||
@@ -1916,7 +1916,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
||||
SendCmdReady(connfd);
|
||||
break;
|
||||
}
|
||||
#if 0
|
||||
#if 0
|
||||
case CZapitMessages::CMD_SET_DISPLAY_FORMAT: {
|
||||
CZapitMessages::commandInt msg;
|
||||
CBasicServer::receive_data(connfd, &msg, sizeof(msg));
|
||||
@@ -2030,7 +2030,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
||||
#if 0
|
||||
t_original_network_id original_network_id = msgAddSubService.original_network_id;
|
||||
t_service_id service_id = msgAddSubService.service_id;
|
||||
t_channel_id sub_channel_id =
|
||||
t_channel_id sub_channel_id =
|
||||
((uint64_t) ( satellitePosition >= 0 ? satellitePosition : (uint64_t)(0xF000+ abs(satellitePosition))) << 48) |
|
||||
(uint64_t) CREATE_CHANNEL_ID(msgAddSubService.service_id, msgAddSubService.original_network_id, msgAddSubService.transport_stream_id);
|
||||
DBG("NVOD insert %llx\n", sub_channel_id);
|
||||
@@ -2689,7 +2689,7 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg)
|
||||
INFO("channels have been loaded succesfully");
|
||||
|
||||
/* FIXME to transit from old satconfig.conf to new frontend.conf,
|
||||
* ConfigFrontend called after PrepareChannels, as it copy satellitePositions to every fe */
|
||||
* ConfigFrontend called after PrepareChannels, as it copy satellitePositions to every fe */
|
||||
LoadSettings();
|
||||
ConfigFrontend();
|
||||
|
||||
@@ -2827,7 +2827,7 @@ void CZapit::run()
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!apid_found || vpid != current_channel->getVideoPid()) {
|
||||
ZapIt(current_channel->getChannelID(), true);
|
||||
} else {
|
||||
@@ -2922,7 +2922,7 @@ void CZapit::SetConfig(Zapit_config * Cfg)
|
||||
SaveSettings(true);
|
||||
ConfigFrontend();
|
||||
}
|
||||
#if 0
|
||||
#if 0
|
||||
//never used
|
||||
void CZapit::SendConfig(int connfd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user