summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-06-23 15:57:58 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-23 16:00:00 +0300
commit0e58e86c4ca903c2193aa793d2b8ad4a61506799 (patch)
tree6f664bb529c7ce9509095b3e2f2fedc04c1212e4
parentc551a853b323a6148d26aae3b22081df92d8e281 (diff)
eglimage: Only register debug category if dmabuf support is enabled
It's not used otherwise currently and causes compiler warnings.
-rw-r--r--gst-libs/gst/gl/egl/gsteglimage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c
index 49c9195ae..569ed220f 100644
--- a/gst-libs/gst/gl/egl/gsteglimage.c
+++ b/gst-libs/gst/gl/egl/gsteglimage.c
@@ -67,6 +67,8 @@
GST_DEFINE_MINI_OBJECT_TYPE (GstEGLImage, gst_egl_image);
+/* XXX: This is only used currently if dmabuf support is enabled */
+#if GST_GL_HAVE_DMABUF
#ifndef GST_DISABLE_GST_DEBUG
#define GST_CAT_DEFAULT gst_egl_image_ensure_debug_category()
@@ -86,6 +88,7 @@ gst_egl_image_ensure_debug_category (void)
return (GstDebugCategory *) cat_gonce;
}
#endif /* GST_DISABLE_GST_DEBUG */
+#endif /* GST_GL_HAVE_DMABUF */
EGLImageKHR
gst_egl_image_get_image (GstEGLImage * image)