mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
gst/gstcaps.*: Constify the field gchar * params in set_simple and friends.
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.
This commit is contained in:
parent
28188a3e6e
commit
126b82fc47
3 changed files with 14 additions and 4 deletions
10
ChangeLog
10
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):
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue