[vlc-devel] [PATCH 2/2] adaptive: chunk: fix spurious condition

Alexandre Janniaux ajanni at videolabs.io
Wed Sep 16 01:04:07 CEST 2020


---
 modules/demux/adaptive/http/Chunk.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/http/Chunk.cpp b/modules/demux/adaptive/http/Chunk.cpp
index c6682c2466..6839ae3a5c 100644
--- a/modules/demux/adaptive/http/Chunk.cpp
+++ b/modules/demux/adaptive/http/Chunk.cpp
@@ -311,7 +311,7 @@ HTTPChunkBufferedSource::~HTTPChunkBufferedSource()
 
     mutex_locker locker {lock};
     done = true;
-    if(held) /* wait release if not in queue but currently downloaded */
+    while(held) /* wait release if not in queue but currently downloaded */
         avail.wait(lock);
 
     if(p_head)
-- 
2.28.0



More information about the vlc-devel mailing list