Commit f7036eb2 authored by Haakon Sporsheim's avatar Haakon Sporsheim Committed by Tim-Philipp Müller

tag: Remove constness to silence MS compiler.

https://bugzilla.gnome.org/show_bug.cgi?id=646744
parent 7b142178
...@@ -297,7 +297,6 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config, ...@@ -297,7 +297,6 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config,
{ {
GstTagXmpWriterData *data; GstTagXmpWriterData *data;
GstBuffer *buf = NULL; GstBuffer *buf = NULL;
const gchar **array;
gint i = 0; gint i = 0;
GSList *iter; GSList *iter;
...@@ -307,12 +306,13 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config, ...@@ -307,12 +306,13 @@ gst_tag_xmp_writer_tag_list_to_xmp_buffer (GstTagXmpWriter * config,
g_static_mutex_lock (&data->lock); g_static_mutex_lock (&data->lock);
if (data->schemas) { 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) { if (array) {
for (iter = data->schemas; iter; iter = g_slist_next (iter)) { 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); g_free (array);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment