From a37734c25c445af152d1097b5f613aca6c1bc3a1 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 28 Jun 2015 21:25:47 +0200 Subject: Make TII enabling a soft-fail --- src/DabModulator.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index 6c19424..8a52401 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -198,8 +198,14 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) (float)mySpacing * (float)myOutputRate / 2048000.0f, cic_ratio)); - shared_ptr tii = make_shared(myDabMode, myTiiConfig); - tii->enrol_at(*myRCs); + shared_ptr tii; + try { + tii = make_shared(myDabMode, myTiiConfig); + tii->enrol_at(*myRCs); + } + catch (std::runtime_error& e) { + etiLog.level(error) << "Could not initialise TII, skipping!"; + } shared_ptr cifOfdm( new OfdmGenerator((1 + myNbSymbols), myNbCarriers, mySpacing)); -- cgit v1.2.3