mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
eglimage: Only register debug category if dmabuf support is enabled
It's not used otherwise currently and causes compiler warnings.
This commit is contained in:
parent
c551a853b3
commit
0e58e86c4c
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,8 @@
|
||||||
|
|
||||||
GST_DEFINE_MINI_OBJECT_TYPE (GstEGLImage, gst_egl_image);
|
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
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
#define GST_CAT_DEFAULT gst_egl_image_ensure_debug_category()
|
#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;
|
return (GstDebugCategory *) cat_gonce;
|
||||||
}
|
}
|
||||||
#endif /* GST_DISABLE_GST_DEBUG */
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
|
#endif /* GST_GL_HAVE_DMABUF */
|
||||||
|
|
||||||
EGLImageKHR
|
EGLImageKHR
|
||||||
gst_egl_image_get_image (GstEGLImage * image)
|
gst_egl_image_get_image (GstEGLImage * image)
|
||||||
|
|
Loading…
Reference in a new issue