eglglessink: Properly set a debug category for the adaption layers

This commit is contained in:
Sebastian Dröge 2013-04-16 22:25:19 +02:00
parent 9fdec0f83b
commit 118f8f33ef
5 changed files with 19 additions and 0 deletions

View file

@ -49,6 +49,9 @@
#include <gst/video/video.h>
#include <string.h>
#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)
{

View file

@ -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);

View file

@ -49,6 +49,8 @@
#include "gstegladaptation.h"
#define GST_CAT_DEFAULT egladaption_debug
struct _GstEaglContext
{
EAGLContext *eagl_context;

View file

@ -53,6 +53,8 @@
#include <GLES2/gl2ext.h>
#include <gst/egl/egl.h>
#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

View file

@ -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 ();