From bb64b314c83843a792103de83ef67cc5b0d1d9be Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 20 May 2016 16:16:28 +0200 Subject: Get rid of FCT discontinuity check The timestamp discontinuity verification takes care of this now --- src/OutputUHD.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/OutputUHD.cpp') diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp index 2325197..74ff042 100644 --- a/src/OutputUHD.cpp +++ b/src/OutputUHD.cpp @@ -328,16 +328,6 @@ int OutputUHD::process(Buffer* dataIn, Buffer* dataOut) if (first_run) { etiLog.level(debug) << "OutputUHD: UHD initialising..."; - switch (myEtiReader->getMode()) { - case 1: fct_increment = 4; break; - case 2: - case 3: fct_increment = 1; break; - case 4: fct_increment = 2; break; - default: break; - } - - last_fct = -1; - // we only set the delay buffer from the dab mode signaled in ETI if the // dab mode was not set in contructor if (myTFDurationMs == 0) { @@ -412,12 +402,6 @@ int OutputUHD::process(Buffer* dataIn, Buffer* dataOut) etiLog.level(info) << "OutputUHD: dropping one frame with invalid FCT"; } - else if (last_fct != -1 and - (last_fct + fct_increment) % 250 != frame.ts.fct) { - worker.stop(); - first_run = true; - throw fct_discontinuity_error(); - } else { while (true) { if (uwd.frames.size() > FRAMES_MAX_SIZE) { @@ -428,8 +412,6 @@ int OutputUHD::process(Buffer* dataIn, Buffer* dataOut) break; } } - - //last_fct = frame.ts.fct; // TODO } return dataIn->getLength(); -- cgit v1.2.3