glupload: Keep track of cached EGLImage texture format
authorPhilippe Normand <philn@igalia.com>
Sun, 23 Jun 2019 10:34:49 +0000 (11:34 +0100)
committerPhilippe Normand <philn@igalia.com>
Sun, 23 Jun 2019 10:34:49 +0000 (11:34 +0100)
commitb233911684773f68164493dd48a34016c9b95191
treec0fcda0ffe8488c8e1944017868ccc0099c5ad4c
parent197dcb9bf4d8fa9218b2b85e5e9f08866bf44708
glupload: Keep track of cached EGLImage texture format

This patch fixes the following critical warning:

CRITICAL **: 11:33:32.843: Unknown GL format 0x0 provided

It would happen during the setup of a second pipeline involving the DMABuf
uploader, typically with a v4l2src element. The warning was raised because the
uploader had a cached EGLImage already filled but the formats were not
synchronized accordingly.
gst-libs/gst/gl/gstglupload.c