aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-21 08:00:10 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-21 08:00:10 +0100
commit5e45beb6a385a6830aa1e3efa1093d7d0eb88ab8 (patch)
tree375a66ccf69755bbfb7806812f400fe95e2c546c /src
parent7da0cf21faf31888f8412a61ae4a12abe01a827f (diff)
downloaddabmod-5e45beb6a385a6830aa1e3efa1093d7d0eb88ab8.tar.gz
dabmod-5e45beb6a385a6830aa1e3efa1093d7d0eb88ab8.tar.bz2
dabmod-5e45beb6a385a6830aa1e3efa1093d7d0eb88ab8.zip
Improve Buffer initialisation in EtiReader
Diffstat (limited to 'src')
-rw-r--r--src/EtiReader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index 5f2be50..d84ed1f 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -207,8 +207,8 @@ int EtiReader::loadEtiData(const Buffer& dataIn)
if (input_size < 128) {
return dataIn.getLength() - input_size;
}
- PDEBUG("Writting 128 bytes of FIC channel data\n");
- Buffer fic = Buffer(128, in);
+ PDEBUG("Writing 128 bytes of FIC channel data\n");
+ Buffer fic(128, in);
myFicSource->loadFicData(fic);
input_size -= 128;
framesize -= 128;
@@ -217,8 +217,8 @@ int EtiReader::loadEtiData(const Buffer& dataIn)
if (input_size < 96) {
return dataIn.getLength() - input_size;
}
- PDEBUG("Writting 96 bytes of FIC channel data\n");
- Buffer fic = Buffer(96, in);
+ PDEBUG("Writing 96 bytes of FIC channel data\n");
+ Buffer fic(96, in);
myFicSource->loadFicData(fic);
input_size -= 96;
framesize -= 96;
@@ -230,7 +230,7 @@ int EtiReader::loadEtiData(const Buffer& dataIn)
for (size_t i = 0; i < eti_stc.size(); ++i) {
unsigned size = mySources[i]->framesize();
PDEBUG("Writting %i bytes of subchannel data\n", size);
- Buffer subch = Buffer(size, in);
+ Buffer subch(size, in);
mySources[i]->loadSubchannelData(subch);
input_size -= size;
framesize -= size;