From: Sebastian Dröge Date: Thu, 23 Jun 2016 12:57:58 +0000 (+0300) Subject: eglimage: Only register debug category if dmabuf support is enabled X-Git-Tag: 1.19.3~507^2~6419 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e58e86c4ca903c2193aa793d2b8ad4a61506799;p=platform%2Fupstream%2Fgstreamer.git eglimage: Only register debug category if dmabuf support is enabled It's not used otherwise currently and causes compiler warnings. --- diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c index 49c9195..569ed22 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)