aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-20 16:16:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-20 16:16:28 +0200
commitbb64b314c83843a792103de83ef67cc5b0d1d9be (patch)
tree1538dad1ad322fad67e9f29094c1d87b022cf54c /src/OutputUHD.cpp
parent5ebfab9364d4315394a136732fd464ffe2229588 (diff)
downloaddabmod-bb64b314c83843a792103de83ef67cc5b0d1d9be.tar.gz
dabmod-bb64b314c83843a792103de83ef67cc5b0d1d9be.tar.bz2
dabmod-bb64b314c83843a792103de83ef67cc5b0d1d9be.zip
Get rid of FCT discontinuity check
The timestamp discontinuity verification takes care of this now
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp18
1 files changed, 0 insertions, 18 deletions
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();