gststructure: Set lcopy string const exactly as glib's macro
authorSebastian Rasmussen <sebrn@axis.com>
Fri, 6 Jul 2012 18:37:06 +0000 (20:37 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 7 Jul 2012 12:32:41 +0000 (13:32 +0100)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679534

gst/gststructure.c

index ea92016..7ca6f5b 100644 (file)
@@ -2735,7 +2735,7 @@ G_STMT_START {                                                                \
   guint _flags = (flags);                                                     \
   GType _value_type = G_VALUE_TYPE (_value);                                  \
   GTypeValueTable *_vtable = g_type_value_table_peek (_value_type);           \
-  gchar *_lcopy_format = _vtable->lcopy_format;                               \
+  const gchar *_lcopy_format = _vtable->lcopy_format;                         \
   GTypeCValue _cvalues[G_VALUE_COLLECT_FORMAT_MAX_LENGTH] = { { 0, }, };      \
   guint _n_values = 0;                                                        \
                                                                               \