From: José Alburquerque Date: Mon, 24 Mar 2008 10:33:41 +0000 (+0000) Subject: gst/gstcaps.*: Constify the field gchar * params in set_simple and friends. X-Git-Tag: RELEASE-0_10_20~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=126b82fc47e7726d08b82f33dabe4b7a3722b7e9;p=platform%2Fupstream%2Fgstreamer.git gst/gstcaps.*: Constify the field gchar * params in set_simple and friends. Original commit message from CVS: Patch by: José Alburquerque * gst/gstcaps.c: (gst_caps_set_simple), (gst_caps_set_simple_valist), (gst_caps_intersect): * gst/gstcaps.h: Constify the field gchar * params in set_simple and friends. Fixes #522326. --- diff --git a/ChangeLog b/ChangeLog index 3939bfe..ebb1c0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2008-03-24 Wim Taymans + Patch by: José Alburquerque + + * gst/gstcaps.c: (gst_caps_set_simple), + (gst_caps_set_simple_valist), (gst_caps_intersect): + * gst/gstcaps.h: + Constify the field gchar * params in set_simple and friends. + Fixes #522326. + +2008-03-24 Wim Taymans + * gst/gstvalue.c: (gst_value_transform_object_string): Transform a GstObject to a more meaningfull string that includes the object type in addition to its name. diff --git a/gst/gstcaps.c b/gst/gstcaps.c index fd330f5..501530c 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -863,7 +863,7 @@ gst_caps_truncate (GstCaps * caps) * manner as gst_structure_set(), and be NULL-terminated. */ void -gst_caps_set_simple (GstCaps * caps, char *field, ...) +gst_caps_set_simple (GstCaps * caps, const char *field, ...) { GstStructure *structure; va_list var_args; @@ -890,7 +890,7 @@ gst_caps_set_simple (GstCaps * caps, char *field, ...) * manner as gst_structure_set(), and be NULL-terminated. */ void -gst_caps_set_simple_valist (GstCaps * caps, char *field, va_list varargs) +gst_caps_set_simple_valist (GstCaps * caps, const char *field, va_list varargs) { GstStructure *structure; diff --git a/gst/gstcaps.h b/gst/gstcaps.h index 8d8d22f..d71dd75 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -208,9 +208,9 @@ GstStructure * gst_caps_get_structure (const GstCaps *caps, GstCaps * gst_caps_copy_nth (const GstCaps *caps, guint nth); void gst_caps_truncate (GstCaps *caps); void gst_caps_set_simple (GstCaps *caps, - char *field, ...) G_GNUC_NULL_TERMINATED; + const char *field, ...) G_GNUC_NULL_TERMINATED; void gst_caps_set_simple_valist (GstCaps *caps, - char *field, + const char *field, va_list varargs); /* tests */