[vlc-commits] picture_pool: fix prototype, fix warnings
Rémi Denis-Courmont
git at videolan.org
Sat Nov 1 15:00:21 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 1 15:58:51 2014 +0200| [37be0f0eef36f2c32a8746810950c921fcc4dd28] | committer: Rémi Denis-Courmont
picture_pool: fix prototype, fix warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37be0f0eef36f2c32a8746810950c921fcc4dd28
---
include/vlc_picture_pool.h | 2 +-
src/misc/picture_pool.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_picture_pool.h b/include/vlc_picture_pool.h
index fe8e946..ad8835e 100644
--- a/include/vlc_picture_pool.h
+++ b/include/vlc_picture_pool.h
@@ -131,7 +131,7 @@ VLC_USED;
/**
* It returns the size of the given pool.
*/
-VLC_API int picture_pool_GetSize(picture_pool_t *);
+VLC_API unsigned picture_pool_GetSize(const picture_pool_t *);
#endif /* VLC_PICTURE_POOL_H */
diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 3603887..e899f9e 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -326,7 +326,7 @@ void picture_pool_NonEmpty(picture_pool_t *pool)
vlc_mutex_unlock(&pool->lock);
}
-int picture_pool_GetSize(picture_pool_t *pool)
+unsigned picture_pool_GetSize(const picture_pool_t *pool)
{
return pool->picture_count;
}
More information about the vlc-commits
mailing list