Racy android SurfaceTexture handling with mediacodec
vlc_asurfacetexture
object without single buffering is racy since 7d6c996a and 78807ffc because of the lack of SurfaceTexture.OnFrameAvailableListener
(https://developer.android.com/reference/android/graphics/SurfaceTexture.OnFrameAvailableListener).
Indeed, though mediacodec push its buffer in a synchronous way, the final GLConsumer will use it in an asynchronous way, and SurfaceTexture::updateTexImage
will only update to the most recent frame in that case, leading to the first frame being randomly black for instance.