From 8254a0ff62bf5f89349076180679ff70a5ced6f8 Mon Sep 17 00:00:00 2001 From: Luca Ognibene Date: Sat, 25 Jun 2005 21:19:33 +0000 Subject: [PATCH] ext/libpostproc/gstpostproc.*: fix debug output Original commit message from CVS: * ext/libpostproc/gstpostproc.c: (gst_ffmpeg_log_callback), (plugin_init): * ext/libpostproc/gstpostproc.h: fix debug output --- ChangeLog | 7 +++++++ ext/libpostproc/gstpostproc.c | 8 ++++---- ext/libpostproc/gstpostproc.h | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c65e21e26..2060aa5d16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-25 Luca Ognibene + + * ext/libpostproc/gstpostproc.c: (gst_ffmpeg_log_callback), + (plugin_init): + * ext/libpostproc/gstpostproc.h: + fix debug output + 2005-06-25 Sebastien Cote Reviewed by: Luca Ognibene diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c index b8b7c5434e..5a232692a7 100644 --- a/ext/libpostproc/gstpostproc.c +++ b/ext/libpostproc/gstpostproc.c @@ -110,8 +110,8 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV("I420")) ); -GST_DEBUG_CATEGORY (postproc); -#define GST_CAT_DEFAULT postproc +GST_DEBUG_CATEGORY (postproc_debug); +#define GST_CAT_DEFAULT postproc_debug static void gst_postproc_class_init (GstPostProcClass * klass); static void gst_postproc_base_init (GstPostProcClass * klass); @@ -156,7 +156,7 @@ gst_ffmpeg_log_callback (void * ptr, int level, const char * fmt, va_list vl) break; } - gst_debug_log_valist (postproc, gst_level, "", "", 0, NULL, fmt, vl); + gst_debug_log_valist (postproc_debug, gst_level, "", "", 0, NULL, fmt, vl); } #endif @@ -503,7 +503,7 @@ gst_postproc_register(GstPlugin * plugin) static gboolean plugin_init (GstPlugin * plugin) { - GST_DEBUG_CATEGORY_INIT (postproc, "postproc", 0, "video postprocessing elements"); + GST_DEBUG_CATEGORY_INIT (postproc_debug, "postproc", 0, "video postprocessing elements"); #ifndef GST_DISABLE_GST_DEBUG av_log_set_callback (gst_ffmpeg_log_callback); #endif diff --git a/ext/libpostproc/gstpostproc.h b/ext/libpostproc/gstpostproc.h index ed3cfe2eaf..cf132cf906 100644 --- a/ext/libpostproc/gstpostproc.h +++ b/ext/libpostproc/gstpostproc.h @@ -29,8 +29,8 @@ #include -GST_DEBUG_CATEGORY_EXTERN (postproc); -#define GST_CAT_DEFAULT postproc +GST_DEBUG_CATEGORY_EXTERN (postproc_debug); +#define GST_CAT_DEFAULT postproc_debug G_BEGIN_DECLS