vlc | branch: master | Alexandre Janniaux <[email protected]> | 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)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to