[vlc-devel] [PATCH] DXVA2: lock the buffer pool when getting/releasing a buffer (v4)

Steve Lhomme robux4 at videolabs.io
Wed Apr 22 15:39:03 CEST 2015


Accesses to surface->refcount need to be thread-safe otherwise picking
the right buffer in Get() is not safe.

On Wed, Apr 22, 2015 at 11:29 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2015-04-22 12:03, Steve Lhomme a écrit :
>>
>> only needed if thread_safe_callbacks is set in avcodec
>
>
> How so? !avctx->thread_safe_callbacks only affects avctx->get_buffer2, so
> va->get. I don't see how it helps va->release.
>
>
> --
> Rémi Denis-Courmont
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list