summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-04-15 10:57:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-04-15 10:57:47 +0200
commit1aeaeb05aadf196636ea5b6a0613c38111821436 (patch)
treef2d38aa2440089eac599e7f455cf4c301dca08d0 /src/DabMultiplexer.cpp
parent97cbd6234058ce1514b5696609ee7bd1f8e6a761 (diff)
downloaddabmux-1aeaeb05aadf196636ea5b6a0613c38111821436.tar.gz
dabmux-1aeaeb05aadf196636ea5b6a0613c38111821436.tar.bz2
dabmux-1aeaeb05aadf196636ea5b6a0613c38111821436.zip
Make getSizeCu a dabSubchannel member function
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());