mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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.
This commit is contained in:
parent
197dcb9bf4
commit
b233911684
1 changed files with 3 additions and 1 deletions
|
@ -702,8 +702,10 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
|||
|
||||
/* check if one is cached */
|
||||
dmabuf->eglimage[i] = _get_cached_eglimage (mems[i], cache_id);
|
||||
if (dmabuf->eglimage[i])
|
||||
if (dmabuf->eglimage[i]) {
|
||||
dmabuf->formats[i] = dmabuf->eglimage[i]->format;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* otherwise create one and cache it */
|
||||
if (dmabuf->direct)
|
||||
|
|
Loading…
Reference in a new issue