Commit 134da6c2 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

gst/gstinfo.*: Make some internal API take const gchar * instead of just gchar...

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).
parent d59d3300
2007-09-18 Tim-Philipp Müller <tim at centricular dot net>
* 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 <wim.taymans@gmail.com>
* gst/gstbin.c: (bin_query_latency_fold), (gst_bin_query):
......
......@@ -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;
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment