• Michael Niedermayer's avatar
    avutil/buffer: Fix race in pool. · cea3a63b
    Michael Niedermayer authored
    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: 's avatarMichael Niedermayer <michaelni@gmx.at>
    cea3a63b
buffer_internal.h 2.59 KB