From 8daadc3603288061b1dc899b7772319b39d004bc Mon Sep 17 00:00:00 2001 From: vsonnier Date: Sat, 6 Jan 2018 15:09:33 +0100 Subject: [PATCH] Missing trace in AudioSink queue saturation --- src/demod/DemodulatorThread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/demod/DemodulatorThread.cpp b/src/demod/DemodulatorThread.cpp index 539672f..b71ea98 100644 --- a/src/demod/DemodulatorThread.cpp +++ b/src/demod/DemodulatorThread.cpp @@ -250,7 +250,9 @@ void DemodulatorThread::run() { ati->peak = 0; ati->data.assign(ati->data.size(), 0.0f); - localAudioSinkOutputQueue->try_push(ati); + if (!localAudioSinkOutputQueue->try_push(ati)) { + std::cout << "DemodulatorThread::run() cannot push ati into audioSinkOutputQueue, is full !" << std::endl; + } } ati = nullptr;