From 1e3675d126e6712e164f06e3701e56776c624cd0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 17 Mar 2014 20:27:48 +0100 Subject: Rename componentIndicatorData to componentDataFIG0_8 --- src/DabMux.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 2e86f03..bf5bf59 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -272,7 +272,7 @@ int main(int argc, char *argv[]) vector::iterator serviceFIG0_17; vector::iterator component = ensemble->components.end(); vector::iterator componentProgFIG0_8; - vector::iterator componentIndicatorData; + vector::iterator componentDataFIG0_8; vector::iterator subchannel = ensemble->subchannels.end(); vector::iterator subchannelFIG0_1; vector::iterator output; @@ -617,7 +617,7 @@ int main(int argc, char *argv[]) serviceDataFIG0_2 = ensemble->services.end(); componentProgFIG0_8 = ensemble->components.end(); - componentIndicatorData = ensemble->components.end(); + componentDataFIG0_8 = ensemble->components.end(); serviceFIG0_17 = ensemble->services.end(); /* used for FIG0/1 insertion */ @@ -1372,21 +1372,21 @@ int main(int argc, char *argv[]) case 1: // FIG 0/8 data fig0 = NULL; - if (componentIndicatorData == ensemble->components.end()) { - componentIndicatorData = ensemble->components.begin(); + if (componentDataFIG0_8 == ensemble->components.end()) { + componentDataFIG0_8 = ensemble->components.begin(); } - for (; componentIndicatorData != ensemble->components.end(); - ++componentIndicatorData) { - service = getService(*componentIndicatorData, + for (; componentDataFIG0_8 != ensemble->components.end(); + ++componentDataFIG0_8) { + service = getService(*componentDataFIG0_8, ensemble->services); subchannel = getSubchannel(ensemble->subchannels, - (*componentIndicatorData)->subchId); + (*componentDataFIG0_8)->subchId); if (subchannel == ensemble->subchannels.end()) { etiLog.log(error, "Subchannel %i does not exist for component " "of service %i\n", - (*componentIndicatorData)->subchId, - (*componentIndicatorData)->serviceId); + (*componentDataFIG0_8)->subchId, + (*componentDataFIG0_8)->serviceId); returnCode = -1; goto EXIT; } @@ -1410,7 +1410,7 @@ int main(int argc, char *argv[]) break; } *((uint32_t*)&etiFrame[index]) = - htonl((*componentIndicatorData)->serviceId); + htonl((*componentDataFIG0_8)->serviceId); fig0->Length += 4; index += 4; figSize += 4; @@ -1419,9 +1419,9 @@ int main(int argc, char *argv[]) (FIGtype0_8_long*)&etiFrame[index]; memset(definition, 0, 3); definition->ext = 0; // no rfa - definition->SCIdS = (*componentIndicatorData)->SCIdS; + definition->SCIdS = (*componentDataFIG0_8)->SCIdS; definition->LS = 1; - definition->setSCId((*componentIndicatorData)->packet.id); + definition->setSCId((*componentDataFIG0_8)->packet.id); fig0->Length += 3; index += 3; // 8 minus rfa figSize += 3; @@ -1430,7 +1430,7 @@ int main(int argc, char *argv[]) break; } *((uint32_t*)&etiFrame[index]) = - htonl((*componentIndicatorData)->serviceId); + htonl((*componentDataFIG0_8)->serviceId); fig0->Length += 4; index += 4; figSize += 4; @@ -1439,10 +1439,10 @@ int main(int argc, char *argv[]) (FIGtype0_8_short*)&etiFrame[index]; memset(definition, 0, 2); definition->ext = 0; // no rfa - definition->SCIdS = (*componentIndicatorData)->SCIdS; + definition->SCIdS = (*componentDataFIG0_8)->SCIdS; definition->LS = 0; definition->MscFic = 0; - definition->Id = (*componentIndicatorData)->subchId; + definition->Id = (*componentDataFIG0_8)->subchId; fig0->Length += 2; index += 2; // 4 minus rfa figSize += 2; -- cgit v1.2.3