diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-05-04 16:05:47 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-05-04 16:05:47 +0200 |
commit | 55fe285c56055497725a619e5b9acbd6dec57e23 (patch) | |
tree | ee9fc752adddd8ef75b4e2c94c0e8ef914411c28 /src/AlsaInput.h | |
parent | 20607d9aff6b1cee10fec1c7efc815ae2d77518c (diff) | |
download | ODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.tar.gz ODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.tar.bz2 ODR-AudioEnc-55fe285c56055497725a619e5b9acbd6dec57e23.zip |
Fix teardown after silence detector trigger
Diffstat (limited to 'src/AlsaInput.h')
-rw-r--r-- | src/AlsaInput.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/AlsaInput.h b/src/AlsaInput.h index 8055140..f697a3c 100644 --- a/src/AlsaInput.h +++ b/src/AlsaInput.h @@ -111,13 +111,7 @@ class AlsaInputThreaded : public AlsaInput m_fault(false), m_running(false) { } - virtual ~AlsaInputThreaded() - { - if (m_running) { - m_running = false; - m_thread.join(); - } - } + virtual ~AlsaInputThreaded(); /*! Start the ALSA thread that fills the queue */ virtual void prepare(void) override; |