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.