[vlc-commits] demux: adaptive: fix signal/lock order

Francois Cartegnie git at videolan.org
Thu May 26 20:51:17 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 26 18:07:47 2016 +0200| [b6cce8c876d5154900e28e647f92557e5630ca94] | committer: Francois Cartegnie

demux: adaptive: fix signal/lock order

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

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

diff --git a/modules/demux/adaptive/http/Downloader.cpp b/modules/demux/adaptive/http/Downloader.cpp
index f473687..c948947 100644
--- a/modules/demux/adaptive/http/Downloader.cpp
+++ b/modules/demux/adaptive/http/Downloader.cpp
@@ -62,8 +62,8 @@ void Downloader::schedule(HTTPChunkBufferedSource *source)
 {
     vlc_mutex_lock(&lock);
     chunks.push_back(source);
-    vlc_mutex_unlock(&lock);
     vlc_cond_signal(&waitcond);
+    vlc_mutex_unlock(&lock);
 }
 
 void Downloader::cancel(HTTPChunkBufferedSource *source)



More information about the vlc-commits mailing list