* This function gets called when the pool has been uninited and * all the buffers returned to it. */
| 315 | * all the buffers returned to it. |
| 316 | */ |
| 317 | static void buffer_pool_free(AVBufferPool *pool) |
| 318 | { |
| 319 | buffer_pool_flush(pool); |
| 320 | ff_mutex_destroy(&pool->mutex); |
| 321 | |
| 322 | if (pool->pool_free) |
| 323 | pool->pool_free(pool->opaque); |
| 324 | |
| 325 | av_freep(&pool); |
| 326 | } |
| 327 | |
| 328 | void av_buffer_pool_uninit(AVBufferPool **ppool) |
| 329 | { |
no test coverage detected