diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-04 16:33:12 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-04 16:33:12 +0200 |
commit | 5774d9b236567767cc473a790290d41ac65e6600 (patch) | |
tree | fe6c133bd4cfff6b65cbb2e141b9e859ade2537e /src | |
parent | 75320be30e3598be818ff6845225b401a52d42c2 (diff) | |
download | fdk-aac-dabplus-5774d9b236567767cc473a790290d41ac65e6600.tar.gz fdk-aac-dabplus-5774d9b236567767cc473a790290d41ac65e6600.tar.bz2 fdk-aac-dabplus-5774d9b236567767cc473a790290d41ac65e6600.zip |
Make m_read return when thread not running anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/VLCInput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 9cf13d8..37ad1e0 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -294,7 +294,7 @@ void VLCInput::postRender_cb() ssize_t VLCInput::m_read(uint8_t* buf, size_t length) { ssize_t err = 0; - for (;;) { + while (m_running) { { std::lock_guard<std::mutex> lock(m_queue_mutex); |