summaryrefslogtreecommitdiffstats
path: root/src/FileInput.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-05-04 16:05:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-05-04 16:05:47 +0200
commit55fe285c56055497725a619e5b9acbd6dec57e23 (patch)
treeee9fc752adddd8ef75b4e2c94c0e8ef914411c28 /src/FileInput.cpp
parent20607d9aff6b1cee10fec1c7efc815ae2d77518c (diff)
downloadODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.tar.gz
ODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.tar.bz2
ODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.zip
Fix teardown after silence detector trigger
Diffstat (limited to 'src/FileInput.cpp')
-rw-r--r--src/FileInput.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FileInput.cpp b/src/FileInput.cpp
index 51b0456..517ea7d 100644
--- a/src/FileInput.cpp
+++ b/src/FileInput.cpp
@@ -27,6 +27,9 @@ using namespace std;
FileInput::~FileInput()
{
+ // Ensures push() doesn't get blocked
+ m_queue.clear();
+
if (m_raw_input and m_in_fh) {
fclose(m_in_fh);
}