Commit 1f8bbc5c authored by Thomas Guillem's avatar Thomas Guillem

vout: remove picture_pool_Reset()

parent 95810fbd
......@@ -145,18 +145,6 @@ VLC_API picture_t *picture_pool_Wait(picture_pool_t *) VLC_USED;
VLC_API void picture_pool_Enum( picture_pool_t *,
void (*cb)(void *, picture_t *), void *data );
/**
* Forcefully return all pictures in the pool to free/unallocated state.
*
* @warning If any picture in the pool is not free, this function will leak
* and may eventually cause invalid memory accesses.
*
* @note This function has no effects if all pictures in the pool are free.
*
* @return the number of picture references that were freed
*/
unsigned picture_pool_Reset( picture_pool_t * );
/**
* Cancel the picture pool.
*
......
......@@ -288,20 +288,6 @@ void picture_pool_Cancel(picture_pool_t *pool, bool canceled)
vlc_mutex_unlock(&pool->lock);
}
unsigned picture_pool_Reset(picture_pool_t *pool)
{
unsigned ret;
vlc_mutex_lock(&pool->lock);
assert(pool->refs > 0);
ret = pool->picture_count - popcountll(pool->available);
pool->available = (1ULL << pool->picture_count) - 1;
pool->canceled = false;
vlc_mutex_unlock(&pool->lock);
return ret;
}
unsigned picture_pool_GetSize(const picture_pool_t *pool)
{
return pool->picture_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment