From f167241da759a7d0bfde769113b5f45fab95ef27 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 11 Apr 2016 08:29:03 +0200 Subject: [PATCH] DSD demod plugin: fixed missing destructor for DSD filters --- dsdplus/dsd_decoder.cpp | 9 ++++----- dsdplus/dsd_filters.cpp | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dsdplus/dsd_decoder.cpp b/dsdplus/dsd_decoder.cpp index d4b7305df..471d8d9d2 100644 --- a/dsdplus/dsd_decoder.cpp +++ b/dsdplus/dsd_decoder.cpp @@ -36,7 +36,6 @@ DSDDecoder::DSDDecoder() : DSDDecoder::~DSDDecoder() { - fclose(stderr); } void DSDDecoder::run(short sample) @@ -1046,7 +1045,7 @@ int DSDDecoder::getFrameSync() if (m_opts.errorbars == 1) { - printFrameSync(" +DMR ", m_synctest_pos + 1, m_modulation); + printFrameSync(" +DMRd ", m_synctest_pos + 1, m_modulation); } m_state.lastsynctype = 10; @@ -1059,7 +1058,7 @@ int DSDDecoder::getFrameSync() if (m_opts.errorbars == 1) { - printFrameSync(" -DMR ", m_synctest_pos + 1, m_modulation); + printFrameSync(" -DMRv ", m_synctest_pos + 1, m_modulation); } if (m_state.lastsynctype != 11) @@ -1086,7 +1085,7 @@ int DSDDecoder::getFrameSync() if (m_opts.errorbars == 1) { - printFrameSync(" +DMR ", m_synctest_pos + 1, m_modulation); + printFrameSync(" +DMRv ", m_synctest_pos + 1, m_modulation); } if (m_state.lastsynctype != 12) @@ -1104,7 +1103,7 @@ int DSDDecoder::getFrameSync() if (m_opts.errorbars == 1) { - printFrameSync(" -DMR ", m_synctest_pos + 1, m_modulation); + printFrameSync(" -DMRd ", m_synctest_pos + 1, m_modulation); } m_state.lastsynctype = 13; diff --git a/dsdplus/dsd_filters.cpp b/dsdplus/dsd_filters.cpp index db87ff2b0..69b4b1600 100644 --- a/dsdplus/dsd_filters.cpp +++ b/dsdplus/dsd_filters.cpp @@ -86,6 +86,10 @@ DSDFilters::DSDFilters() } } +DSDFilters::~DSDFilters() +{ +} + short DSDFilters::dmr_filter(short sample) { return dsd_input_filter(sample, 1);