diff --git a/ext/eglgles/gstegladaptation.c b/ext/eglgles/gstegladaptation.c index 1315308813..601170799e 100644 --- a/ext/eglgles/gstegladaptation.c +++ b/ext/eglgles/gstegladaptation.c @@ -49,6 +49,9 @@ #include #include +#define GST_CAT_DEFAULT egladaption_debug +GST_DEBUG_CATEGORY (egladaption_debug); + /* GLESv2 GLSL Shaders * * OpenGL ES Standard does not mandate YUV support. This is @@ -208,6 +211,12 @@ static const char *frag_NV12_NV21_prog = { }; /* *INDENT-ON* */ +void +gst_egl_adaption_init (void) +{ + GST_DEBUG_CATEGORY_INIT (egladaption_debug, "egladaption", 0, "EGL adaption layer"); +} + static GstCaps * _gst_video_format_new_template_caps (GstVideoFormat format) { diff --git a/ext/eglgles/gstegladaptation.h b/ext/eglgles/gstegladaptation.h index b8089ddde5..63eec950d2 100644 --- a/ext/eglgles/gstegladaptation.h +++ b/ext/eglgles/gstegladaptation.h @@ -151,6 +151,10 @@ struct _GstEglAdaptationContext gboolean buffer_preserved; }; +GST_DEBUG_CATEGORY_EXTERN (egladaption_debug); + +void gst_egl_adaption_init (void); + GstEglAdaptationContext * gst_egl_adaptation_context_new (GstElement * element); void gst_egl_adaptation_context_free (GstEglAdaptationContext * ctx); void gst_egl_adaptation_init (GstEglAdaptationContext * ctx); diff --git a/ext/eglgles/gstegladaptation_eagl.m b/ext/eglgles/gstegladaptation_eagl.m index f786447803..68541f4cbc 100644 --- a/ext/eglgles/gstegladaptation_eagl.m +++ b/ext/eglgles/gstegladaptation_eagl.m @@ -49,6 +49,8 @@ #include "gstegladaptation.h" +#define GST_CAT_DEFAULT egladaption_debug + struct _GstEaglContext { EAGLContext *eagl_context; diff --git a/ext/eglgles/gstegladaptation_egl.c b/ext/eglgles/gstegladaptation_egl.c index eeefc7e070..edd360af8b 100644 --- a/ext/eglgles/gstegladaptation_egl.c +++ b/ext/eglgles/gstegladaptation_egl.c @@ -53,6 +53,8 @@ #include #include +#define GST_CAT_DEFAULT egladaption_debug + /* Some EGL implementations are reporting wrong * values for the display's EGL_PIXEL_ASPECT_RATIO. * They are required by the khronos specs to report diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index b00686345a..4526132815 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -2449,6 +2449,8 @@ eglglessink_plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_eglglessink_debug, "eglglessink", 0, "Simple EGL/GLES Sink"); + gst_egl_adaption_init (); + #ifdef USE_EGL_RPI GST_DEBUG ("Initialize BCM host"); bcm_host_init ();