aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-17 20:23:17 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-17 20:23:17 +0100
commit8b4f76ac9f5965f90c387c633898254511f443bc (patch)
tree30cf9a58252b20ba445c6ad298e203c65532514f /src
parentbad673c79b29d84abc802fb47c427586a14f2b5a (diff)
downloaddabmux-8b4f76ac9f5965f90c387c633898254511f443bc.tar.gz
dabmux-8b4f76ac9f5965f90c387c633898254511f443bc.tar.bz2
dabmux-8b4f76ac9f5965f90c387c633898254511f443bc.zip
Rename serviceDataInd to serviceDataFIG0_2
Diffstat (limited to 'src')
-rw-r--r--src/DabMux.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 5875b3e..b123f01 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -268,7 +268,7 @@ int main(int argc, char *argv[])
vector<dabOutput*> outputs;
vector<DabService*>::iterator service = ensemble->services.end();
vector<DabService*>::iterator serviceProgFIG0_2;
- vector<DabService*>::iterator serviceDataInd;
+ vector<DabService*>::iterator serviceDataFIG0_2;
vector<DabService*>::iterator servicePty;
vector<DabComponent*>::iterator component = ensemble->components.end();
vector<DabComponent*>::iterator componentIndicatorProgram;
@@ -614,7 +614,7 @@ int main(int argc, char *argv[])
/* Used for FIG0/2 insertion */
serviceProgFIG0_2 = ensemble->services.end();
- serviceDataInd = ensemble->services.end();
+ serviceDataFIG0_2 = ensemble->services.end();
componentIndicatorProgram = ensemble->components.end();
componentIndicatorData = ensemble->components.end();
@@ -1031,15 +1031,15 @@ int main(int argc, char *argv[])
fig0_2 = NULL;
cur = 0;
- if (serviceDataInd == ensemble->services.end()) {
- serviceDataInd = ensemble->services.begin();
+ if (serviceDataFIG0_2 == ensemble->services.end()) {
+ serviceDataFIG0_2 = ensemble->services.begin();
}
- for (; serviceDataInd != ensemble->services.end();
- ++serviceDataInd) {
- if (!(*serviceDataInd)->nbComponent(ensemble->components)) {
+ for (; serviceDataFIG0_2 != ensemble->services.end();
+ ++serviceDataFIG0_2) {
+ if (!(*serviceDataFIG0_2)->nbComponent(ensemble->components)) {
continue;
}
- unsigned char type = (*serviceDataInd)->getType(ensemble);
+ unsigned char type = (*serviceDataFIG0_2)->getType(ensemble);
if ((type == 0) || (type == 2)) {
continue;
}
@@ -1060,7 +1060,7 @@ int main(int argc, char *argv[])
}
if (figSize + 5
- + (*serviceDataInd)->nbComponent(ensemble->components)
+ + (*serviceDataFIG0_2)->nbComponent(ensemble->components)
* 2 > 30) {
break;
}
@@ -1068,21 +1068,21 @@ int main(int argc, char *argv[])
fig0_2serviceData =
(FIGtype0_2_Service_data*) &etiFrame[index];
- fig0_2serviceData->SId = htonl((*serviceDataInd)->id);
+ fig0_2serviceData->SId = htonl((*serviceDataFIG0_2)->id);
fig0_2serviceData->Local_flag = 0;
fig0_2serviceData->CAId = 0;
fig0_2serviceData->NbServiceComp =
- (*serviceDataInd)->nbComponent(ensemble->components);
+ (*serviceDataFIG0_2)->nbComponent(ensemble->components);
fig0_2->Length += 5;
index += 5;
figSize += 5;
int curCpnt = 0;
for (component = getComponent(ensemble->components,
- (*serviceDataInd)->id);
+ (*serviceDataFIG0_2)->id);
component != ensemble->components.end();
component = getComponent(ensemble->components,
- (*serviceDataInd)->id, component)) {
+ (*serviceDataFIG0_2)->id, component)) {
subchannel = getSubchannel(ensemble->subchannels,
(*component)->subchId);
if (subchannel == ensemble->subchannels.end()) {