summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r--src/DabMultiplexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp
index d9ba496..3b28bd0 100644
--- a/src/DabMultiplexer.cpp
+++ b/src/DabMultiplexer.cpp
@@ -158,7 +158,7 @@ void DabMultiplexer::prepare()
vector<dabSubchannel*>::iterator subchannel =
ensemble->subchannels.end() - 1;
- if ((*subchannel)->startAddress + getSizeCu((*subchannel)) > 864) {
+ if ((*subchannel)->startAddress + (*subchannel)->getSizeCu() > 864) {
etiLog.log(error, "Total size in CU exceeds 864\n");
printSubchannels(ensemble->subchannels);
throw MuxInitException();
@@ -314,7 +314,7 @@ void DabMultiplexer::prepare_data_inputs()
(*subchannel)->startAddress = 0;
} else {
(*subchannel)->startAddress = (*(subchannel - 1))->startAddress +
- getSizeCu(*(subchannel - 1));
+ (*subchannel - 1)->getSizeCu();
}
if ((*subchannel)->input->open((*subchannel)->inputUri) == -1) {
perror((*subchannel)->inputUri.c_str());