aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-04 16:33:12 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-04 16:33:12 +0200
commit5774d9b236567767cc473a790290d41ac65e6600 (patch)
treefe6c133bd4cfff6b65cbb2e141b9e859ade2537e /src
parent75320be30e3598be818ff6845225b401a52d42c2 (diff)
downloadODR-AudioEnc-5774d9b236567767cc473a790290d41ac65e6600.tar.gz
ODR-AudioEnc-5774d9b236567767cc473a790290d41ac65e6600.tar.bz2
ODR-AudioEnc-5774d9b236567767cc473a790290d41ac65e6600.zip
Make m_read return when thread not running anymore
Diffstat (limited to 'src')
-rw-r--r--src/VLCInput.cpp2
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);