Commit 2aab2757 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

gst/gstmessage.*: Mark the debug string parameters as const. Fixes bug #533490.

Original commit message from CVS:
* gst/gstmessage.c: (gst_message_new_error),
(gst_message_new_warning), (gst_message_new_info):
* gst/gstmessage.h:
Mark the debug string parameters as const. Fixes bug #533490.
parent 654ba215
2008-05-17 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstmessage.c: (gst_message_new_error),
(gst_message_new_warning), (gst_message_new_info):
* gst/gstmessage.h:
Mark the debug string parameters as const. Fixes bug #533490.
2008-05-16 Sebastian Dröge <slomo@circular-chaos.org>
* libs/gst/base/gsttypefindhelper.c: (helper_find_peek):
......
......@@ -341,7 +341,7 @@ gst_message_new_eos (GstObject * src)
* MT safe.
*/
GstMessage *
gst_message_new_error (GstObject * src, GError * error, gchar * debug)
gst_message_new_error (GstObject * src, GError * error, const gchar * debug)
{
GstMessage *message;
GstStructure *structure;
......@@ -369,7 +369,7 @@ gst_message_new_error (GstObject * src, GError * error, gchar * debug)
* MT safe.
*/
GstMessage *
gst_message_new_warning (GstObject * src, GError * error, gchar * debug)
gst_message_new_warning (GstObject * src, GError * error, const gchar * debug)
{
GstMessage *message;
GstStructure *structure;
......@@ -399,7 +399,7 @@ gst_message_new_warning (GstObject * src, GError * error, gchar * debug)
* MT safe.
*/
GstMessage *
gst_message_new_info (GstObject * src, GError * error, gchar * debug)
gst_message_new_info (GstObject * src, GError * error, const gchar * debug)
{
GstMessage *message;
GstStructure *structure;
......
......@@ -275,15 +275,15 @@ GstMessage * gst_message_new_eos (GstObject * src);
/* ERROR */
GstMessage * gst_message_new_error (GstObject * src, GError * error, gchar * debug);
GstMessage * gst_message_new_error (GstObject * src, GError * error, const gchar * debug);
void gst_message_parse_error (GstMessage *message, GError **gerror, gchar **debug);
/* WARNING */
GstMessage * gst_message_new_warning (GstObject * src, GError * error, gchar * debug);
GstMessage * gst_message_new_warning (GstObject * src, GError * error, const gchar * debug);
void gst_message_parse_warning (GstMessage *message, GError **gerror, gchar **debug);
/* INFO */
GstMessage * gst_message_new_info (GstObject * src, GError * error, gchar * debug);
GstMessage * gst_message_new_info (GstObject * src, GError * error, const gchar * debug);
void gst_message_parse_info (GstMessage *message, GError **gerror, gchar **debug);
/* TAG */
......
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