avutil/buffer: add #if USE_ATOMICS around atomics specific functions to ensure sync...
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Dec 2014 19:24:27 +0000 (20:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Dec 2014 19:47:41 +0000 (20:47 +0100)
Fixes CID1257011

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/buffer.c

index b114afc..c881d1a 100644 (file)
@@ -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)
 {