[vlc-commits] picture_pool: fix picture_pool_Cancel() with multiple threads

Rémi Denis-Courmont git at videolan.org
Mon Nov 30 19:42:43 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 30 20:42:09 2015 +0200| [fb343ccb5429c2f823c6bece28da6637c5cc7913] | committer: Rémi Denis-Courmont

picture_pool: fix picture_pool_Cancel() with multiple threads

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

 src/misc/picture_pool.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 364dfdc..b25ff94 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -283,7 +283,7 @@ void picture_pool_Cancel(picture_pool_t *pool)
     assert(pool->refs > 0);
 
     pool->canceled = true;
-    vlc_cond_signal(&pool->wait);
+    vlc_cond_broadcast(&pool->wait);
     vlc_mutex_unlock(&pool->lock);
 }
 



More information about the vlc-commits mailing list