[vlc-commits] adaptive: chunk: fix spurious condition

Alexandre Janniaux git at videolan.org
Fri Sep 18 21:01:53 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Sep 16 01:04:07 2020 +0200| [54056a364365f8426d84483b08f1db907ede33df] | committer: Alexandre Janniaux

adaptive: chunk: fix spurious condition

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54056a364365f8426d84483b08f1db907ede33df
---

 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)



More information about the vlc-commits mailing list