From 8a860bd02491237a6c636c79539786cf5110c6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Thu, 13 Mar 2014 14:26:58 +0100 Subject: [PATCH] omxvideo: fix debug category initialisation https://bugzilla.gnome.org/show_bug.cgi?id=726024 --- omx/gstomx.c | 2 ++ omx/gstomx.h | 2 ++ omx/gstomxvideo.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 7ec2ce2694..a37bb6bc3c 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 4700e8e3e1..8efe23df5e 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 2e6cdfbba3..b8d8fd2e95 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 *