From f7036eb26027dd5d08a8f88f3165f74dab2ac73d Mon Sep 17 00:00:00 2001 From: Haakon Sporsheim Date: Mon, 4 Apr 2011 17:23:53 +0200 Subject: [PATCH] tag: Remove constness to silence MS compiler. https://bugzilla.gnome.org/show_bug.cgi?id=646744 --- gst-libs/gst/tag/xmpwriter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/tag/xmpwriter.c b/gst-libs/gst/tag/xmpwriter.c index 573224c..23282b8 100644 --- a/gst-libs/gst/tag/xmpwriter.c +++ b/gst-libs/gst/tag/xmpwriter.c @@ -297,7 +297,6 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config, { GstTagXmpWriterData *data; GstBuffer *buf = NULL; - const gchar **array; gint i = 0; GSList *iter; @@ -307,12 +306,13 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config, g_static_mutex_lock (&data->lock); if (data->schemas) { - array = g_new0 (const gchar *, g_slist_length (data->schemas) + 1); + gchar **array = g_new0 (gchar *, g_slist_length (data->schemas) + 1); if (array) { for (iter = data->schemas; iter; iter = g_slist_next (iter)) { - array[i++] = (const gchar *) iter->data; + array[i++] = (gchar *) iter->data; } - buf = gst_tag_list_to_xmp_buffer_full (taglist, read_only, array); + buf = gst_tag_list_to_xmp_buffer_full (taglist, read_only, + (const gchar **) array); g_free (array); } } -- 2.7.4