MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_buffer_pool_uninit

Function av_buffer_pool_uninit

libavutil/buffer.c:328–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void av_buffer_pool_uninit(AVBufferPool **ppool)
329{
330 AVBufferPool *pool;
331
332 if (!ppool || !*ppool)
333 return;
334 pool = *ppool;
335 *ppool = NULL;
336
337 ff_mutex_lock(&pool->mutex);
338 buffer_pool_flush(pool);
339 ff_mutex_unlock(&pool->mutex);
340
341 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1)
342 buffer_pool_free(pool);
343}
344
345static void pool_release_buffer(void *opaque, uint8_t *data)
346{

Callers 15

xcbgrab_read_closeFunction · 0.85
mpegts_freeFunction · 0.85
vulkan_frames_uninitFunction · 0.85
hwframe_ctx_freeFunction · 0.85
nvdec_free_dummyFunction · 0.85
vk_decode_prores_uninitFunction · 0.85
libdav1d_closeFunction · 0.85
ff_d3d12va_encode_closeFunction · 0.85
ff_vulkan_encode_uninitFunction · 0.85

Calls 4

ff_mutex_lockFunction · 0.85
buffer_pool_flushFunction · 0.85
ff_mutex_unlockFunction · 0.85
buffer_pool_freeFunction · 0.85

Tested by

no test coverage detected