summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.cpp
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/VLCInput.cpp
parent75320be30e3598be818ff6845225b401a52d42c2 (diff)
downloadfdk-aac-5774d9b236567767cc473a790290d41ac65e6600.tar.gz
fdk-aac-5774d9b236567767cc473a790290d41ac65e6600.tar.bz2
fdk-aac-5774d9b236567767cc473a790290d41ac65e6600.zip
Make m_read return when thread not running anymore
Diffstat (limited to 'src/VLCInput.cpp')
-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);