diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-20 22:09:21 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-20 22:09:21 +0100 |
commit | 64105cd84307c091e3dd2bea2727edf6bdf58ed6 (patch) | |
tree | 4722e8e75b9fe859aa6e53697df612a1e05a5693 /src/EtiReader.cpp | |
parent | 3f094996520fbf006a567873bc9da4d1b430345f (diff) | |
download | dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.gz dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.bz2 dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.zip |
fix some errors seen by cppcheck
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r-- | src/EtiReader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp index fcc0125..b1fa482 100644 --- a/src/EtiReader.cpp +++ b/src/EtiReader.cpp @@ -52,12 +52,12 @@ EtiReader::EtiReader(struct modulator_offset_config& modconf, Logger& logger) : myLogger(logger), state(EtiReaderStateSync), - myFicSource(NULL) + myFicSource(NULL), + myTimestampDecoder(modconf, myLogger) { PDEBUG("EtiReader::EtiReader()\n"); myCurrentFrame = 0; - myTimestampDecoder = new TimestampDecoder(modconf, myLogger); } EtiReader::~EtiReader() @@ -276,13 +276,13 @@ int EtiReader::process(Buffer* dataIn) } // Update timestamps - myTimestampDecoder->updateTimestampEti(eti_fc.FP & 0x3, + myTimestampDecoder.updateTimestampEti(eti_fc.FP & 0x3, eti_eoh.MNSC, getPPSOffset()); if (getFCT() % 125 == 0) //every 3 seconds is fine enough { - myTimestampDecoder->updateModulatorOffset(); + myTimestampDecoder.updateModulatorOffset(); } return dataIn->getLength() - input_size; |