[vlc-commits] picture_pool: make condition a little bit more clear

Sergey Radionov git at videolan.org
Sun Jan 31 11:11:43 CET 2016


vlc | branch: master | Sergey Radionov <rsatom at gmail.com> | Sun Jan 31 10:02:17 2016 +0600| [32bcb76e06bf8e0c6701c0d69fe9c0bc1d924ef8] | committer: Rémi Denis-Courmont

picture_pool: make condition a little bit more clear

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/misc/picture_pool.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 8e72382..8a507ac 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -219,7 +219,7 @@ picture_t *picture_pool_Get(picture_pool_t *pool)
 
         picture_t *picture = pool->picture[i - 1];
 
-        if (pool->pic_lock != NULL && pool->pic_lock(picture) != 0) {
+        if (pool->pic_lock != NULL && pool->pic_lock(picture) != VLC_SUCCESS) {
             vlc_mutex_lock(&pool->lock);
             pool->available |= 1ULL << (i - 1);
             continue;
@@ -261,7 +261,7 @@ picture_t *picture_pool_Wait(picture_pool_t *pool)
 
     picture_t *picture = pool->picture[i - 1];
 
-    if (pool->pic_lock != NULL && pool->pic_lock(picture) != 0) {
+    if (pool->pic_lock != NULL && pool->pic_lock(picture) != VLC_SUCCESS) {
         vlc_mutex_lock(&pool->lock);
         pool->available |= 1ULL << (i - 1);
         vlc_cond_signal(&pool->wait);



More information about the vlc-commits mailing list