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:
Víctor Manuel Jáquez Leal 2025-03-24 15:56:01 +01:00 committed by GStreamer Marge Bot
parent 146b49fd9e
commit ca04a4cd44

@ -1073,12 +1073,16 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
return FALSE;
/* 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;
}
/* 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;
}
if (!gst_eglExportDMABUFImageMESA (egl_display, image->image, &egl_fd,
&egl_stride, &egl_offset))