gl: eglimage: warn the reason of export failure
So people debugging could know what's happening at debugging. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8672>
This commit is contained in:
parent
146b49fd9e
commit
ca04a4cd44
@ -1073,12 +1073,16 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Don't allow multi-plane dmabufs */
|
/* Don't allow multi-plane dmabufs */
|
||||||
if (num_planes > 1)
|
if (num_planes > 1) {
|
||||||
|
GST_WARNING ("Multi plane DMAbufs are not allowed to export");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME We don't support modifiers */
|
/* FIXME We don't support modifiers */
|
||||||
if (modifier[0] != DRM_FORMAT_MOD_LINEAR)
|
if (modifier[0] != DRM_FORMAT_MOD_LINEAR) {
|
||||||
|
GST_WARNING ("Non-linear DMAbufs are not allowed to export");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (!gst_eglExportDMABUFImageMESA (egl_display, image->image, &egl_fd,
|
if (!gst_eglExportDMABUFImageMESA (egl_display, image->image, &egl_fd,
|
||||||
&egl_stride, &egl_offset))
|
&egl_stride, &egl_offset))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user