From 034757e936c2150ca706029f9b4fb58ca9040b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 Dec 2013 14:34:56 +0100 Subject: openni2src: Use debug category properly --- ext/openni2/gstopenni2src.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/openni2/gstopenni2src.cpp b/ext/openni2/gstopenni2src.cpp index 59e2648f4..a1bcf20ce 100644 --- a/ext/openni2/gstopenni2src.cpp +++ b/ext/openni2/gstopenni2src.cpp @@ -43,6 +43,7 @@ #include "gstopenni2src.h" GST_DEBUG_CATEGORY_STATIC (openni2src_debug); +#define GST_CAT_DEFAULT openni2src_debug static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -112,9 +113,10 @@ static GstFlowReturn openni2_read_gstbuffer (GstOpenni2Src * src, static void openni2_finalise (GstOpenni2Src * src); #define parent_class gst_openni2_src_parent_class -G_DEFINE_TYPE (GstOpenni2Src, gst_openni2_src, GST_TYPE_PUSH_SRC) +G_DEFINE_TYPE (GstOpenni2Src, gst_openni2_src, GST_TYPE_PUSH_SRC); - static void gst_openni2_src_class_init (GstOpenni2SrcClass * klass) +static void +gst_openni2_src_class_init (GstOpenni2SrcClass * klass) { GObjectClass *gobject_class; GstPushSrcClass *pushsrc_class; @@ -406,7 +408,7 @@ gst_openni2src_plugin_init (GstPlugin * plugin) static gboolean -openni2_initialise_library () +openni2_initialise_library (void) { openni::Status rc = openni::STATUS_OK; rc = openni::OpenNI::initialize (); -- cgit v1.2.1