aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-27 13:52:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-27 13:52:54 +0100
commitb11eff2c8c913d470897e5395b240939ed46dc35 (patch)
tree9661cb7b8dab3c4b2ab6123a64c020b01605fdec /src/DabMod.cpp
parent5971e74e6b23b9980af23ac35f3032970adc426b (diff)
downloaddabmod-b11eff2c8c913d470897e5395b240939ed46dc35.tar.gz
dabmod-b11eff2c8c913d470897e5395b240939ed46dc35.tar.bz2
dabmod-b11eff2c8c913d470897e5395b240939ed46dc35.zip
Restart whole modulator on FCT discontinuity
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 3548f9d..2489797 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -866,6 +866,10 @@ run_modulator_state run_modulator(modulator_data& m)
running = 0;
ret = MOD_NORMAL_END;
}
+ } catch (fct_discontinuity_error& e) {
+ // The OutputUHD saw a FCT discontinuity
+ fprintf(stderr, "Stream discontinuity\n");
+ ret = MOD_AGAIN;
} catch (std::overflow_error& e) {
// The ZeroMQ input has overflowed its buffer
fprintf(stderr, "overflow error: %s\n", e.what());