gst/gstcaps.*: Constify the field gchar * params in set_simple and friends.
authorJosé Alburquerque <jaalburqu@svn.gnome.org>
Mon, 24 Mar 2008 10:33:41 +0000 (10:33 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 24 Mar 2008 10:33:41 +0000 (10:33 +0000)
Original commit message from CVS:
Patch by:  José Alburquerque <jaalburqu at svn dot gnome dot org>
* 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.

ChangeLog
gst/gstcaps.c
gst/gstcaps.h

index 3939bfe3e2694b56a3cf807645d380956f46bc78..ebb1c0d2325ed9c992a747166d0908a1dbcc6e31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-03-24  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       Patch by:  José Alburquerque <jaalburqu at svn dot gnome dot org>
+
+       * 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  <wim.taymans@collabora.co.uk>
 
        * gst/gstvalue.c: (gst_value_transform_object_string):
index fd330f51dcc6112e7befbb2383e811d16311cab1..501530c65dc6c62026ad5a5d578d80dad037bbb8 100644 (file)
@@ -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;
 
index 8d8d22f6289a611ef5c505951da7f3d297203653..d71dd750f3b208d407399e5ab8b142dbf08da622 100644 (file)
@@ -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 */