summaryrefslogtreecommitdiff
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-06 20:24:27 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 20:47:41 +0100
commit890d8f44fdfe08e5324b34019694f763c966fd28 (patch)
tree64a16ab5a63257ada96b0a1d35d80a72b48d6a32 /libavutil/buffer.c
parenta4f387bf56a6285d926b4b5a467a4114efbd19b1 (diff)
avutil/buffer: add #if USE_ATOMICS around atomics specific functions to ensure sync types arent mixed by mistake
Fixes CID1257011 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r--libavutil/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index b114afcbb1..c881d1a24b 100644
--- a/libavutil/buffer.c
+++ b/libavutil/buffer.c
@@ -250,6 +250,7 @@ void av_buffer_pool_uninit(AVBufferPool **ppool)
buffer_pool_free(pool);
}
+#if USE_ATOMICS
/* remove the whole buffer list from the pool and return it */
static BufferPoolEntry *get_pool(AVBufferPool *pool)
{
@@ -285,6 +286,7 @@ static void add_to_pool(BufferPoolEntry *buf)
end = end->next;
}
}
+#endif
static void pool_release_buffer(void *opaque, uint8_t *data)
{