From 64105cd84307c091e3dd2bea2727edf6bdf58ed6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 20 Jan 2014 22:09:21 +0100 Subject: fix some errors seen by cppcheck --- src/EtiReader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/EtiReader.cpp') 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; -- cgit v1.2.3