From 5774d9b236567767cc473a790290d41ac65e6600 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 4 Jul 2016 16:33:12 +0200 Subject: Make m_read return when thread not running anymore --- src/VLCInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/VLCInput.cpp') 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 lock(m_queue_mutex); -- cgit v1.2.3