omxvideo: fix debug category initialisation

https://bugzilla.gnome.org/show_bug.cgi?id=726024
This commit is contained in:
Christian König 2014-03-13 14:26:58 +01:00 committed by Sebastian Dröge
parent 0ea0eb1579
commit 8a860bd024
3 changed files with 5 additions and 1 deletions

View file

@ -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 */

View file

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

View file

@ -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 *