Skip to content
Snippets Groups Projects
Commit cea3a63b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/buffer: Fix race in pool.


This race will always happen sooner or later in a multi-threaded
environment and it will over time lead to OOM.
This fix works by spinning, there are other ways by which this
can be fixed, like simply detecting the issue after it happened
and freeing the over-allocated memory or simply using a mutex.

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 73ef1275
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment