From 134da6c28e415d6286e11b000181a43d624d5e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 18 Sep 2007 22:13:57 +0000 Subject: [PATCH] gst/gstinfo.*: Make some internal API take const gchar * instead of just gchar * to avoid compiler warnings with g++-... Original commit message from CVS: * gst/gstinfo.c: * gst/gstinfo.h: Make some internal API take const gchar * instead of just gchar * to avoid compiler warnings with g++-4.2.2 when passing string constants (partially fixes #478092). --- ChangeLog | 8 ++++++++ gst/gstinfo.c | 3 ++- gst/gstinfo.h | 6 +++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e6ac29c8a..d6029cb5b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-09-18 Tim-Philipp Müller + + * gst/gstinfo.c: + * gst/gstinfo.h: + Make some internal API take const gchar * instead of just + gchar * to avoid compiler warnings with g++-4.2.2 when + passing string constants (partially fixes #478092). + 2007-09-17 Wim Taymans * gst/gstbin.c: (bin_query_latency_fold), (gst_bin_query): diff --git a/gst/gstinfo.c b/gst/gstinfo.c index bf9811bf8e..f9a36ca510 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -1031,7 +1031,8 @@ gst_debug_unset_threshold_for_name (const gchar * name) } GstDebugCategory * -_gst_debug_category_new (gchar * name, guint color, gchar * description) +_gst_debug_category_new (const gchar * name, guint color, + const gchar * description) { GstDebugCategory *cat; diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 79ce5bd93f..4cf55f95a4 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -337,9 +337,9 @@ void gst_debug_unset_threshold_for_name (const gchar * name); */ #define GST_DEBUG_CATEGORY_STATIC(cat) static GstDebugCategory *cat = NULL /* do not use this function, use the macros below */ -GstDebugCategory *_gst_debug_category_new (gchar * name, - guint color, - gchar * description); +GstDebugCategory *_gst_debug_category_new (const gchar * name, + guint color, + const gchar * description); /** * GST_DEBUG_CATEGORY_INIT: * @cat: the category to initialize.