summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-03-13 14:26:58 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-15 12:42:03 +0100
commit8a860bd02491237a6c636c79539786cf5110c6bd (patch)
tree293f3432f896fe9a924f97604096bc251bb48f80
parent0ea0eb15795f2cbc75eb2fc177020ee4a3343961 (diff)
omxvideo: fix debug category initialisation
https://bugzilla.gnome.org/show_bug.cgi?id=726024
-rw-r--r--omx/gstomx.c2
-rw-r--r--omx/gstomx.h2
-rw-r--r--omx/gstomxvideo.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 7ec2ce2..a37bb6b 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -2633,6 +2633,8 @@ plugin_init (GstPlugin * plugin)
static const gchar *env_config_name[] = { "GST_OMX_CONFIG_DIR", NULL };
GST_DEBUG_CATEGORY_INIT (gstomx_debug, "omx", 0, "gst-omx");
+ GST_DEBUG_CATEGORY_INIT (gst_omx_video_debug_category, "omxvideo", 0,
+ "gst-omx-video");
/* Read configuration file gstomx.conf from the preferred
* configuration directories */
diff --git a/omx/gstomx.h b/omx/gstomx.h
index 4700e8e..8efe23d 100644
--- a/omx/gstomx.h
+++ b/omx/gstomx.h
@@ -341,6 +341,8 @@ gboolean gst_omx_port_is_enabled (GstOMXPort * port);
void gst_omx_set_default_role (GstOMXClassData *class_data, const gchar *default_role);
+/* refered by plugin_init */
+GST_DEBUG_CATEGORY_EXTERN (gst_omx_video_debug_category);
G_END_DECLS
diff --git a/omx/gstomxvideo.c b/omx/gstomxvideo.c
index 2e6cdfb..b8d8fd2 100644
--- a/omx/gstomxvideo.c
+++ b/omx/gstomxvideo.c
@@ -28,7 +28,7 @@
#include "gstomxvideo.h"
-GST_DEBUG_CATEGORY_STATIC (gst_omx_video_debug_category);
+GST_DEBUG_CATEGORY (gst_omx_video_debug_category);
#define GST_CAT_DEFAULT gst_omx_video_debug_category
GList *