From ca04a4cd4465c7c4084f9d01ca7b31463be2db66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 24 Mar 2025 15:56:01 +0100 Subject: [PATCH] gl: eglimage: warn the reason of export failure So people debugging could know what's happening at debugging. Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c index e6333cfecb..cb8d43f7c7 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c @@ -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))