From 33c2f5fb01b1cb9145751a745cfa2514421fa7b3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 22 Mar 2010 13:16:33 +0100 Subject: Add -Wwrite-strings and fix its warnings --- gst/id3tag/id3tag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst/id3tag') diff --git a/gst/id3tag/id3tag.c b/gst/id3tag/id3tag.c index 899bd4be2..301307e5d 100644 --- a/gst/id3tag/id3tag.c +++ b/gst/id3tag/id3tag.c @@ -926,7 +926,7 @@ add_relative_volume_tag (GstId3v2Tag * id3v2tag, const GstTagList * list, gint16 gain_int; guint8 peak_bits; GstId3v2Frame frame; - gchar *frame_id; + const gchar *frame_id; /* figure out tag names and the identification string to use */ if (strcmp (tag, GST_TAG_TRACK_PEAK) == 0 || @@ -1154,7 +1154,8 @@ latin1_convert (const GstTagList * list, const gchar * tag, /* Convert to Latin-1 (ISO-8859-1), replacing unrepresentable characters with '?' */ - latin1 = g_convert_with_fallback (str, -1, "ISO-8859-1", "UTF-8", "?", + latin1 = + g_convert_with_fallback (str, -1, "ISO-8859-1", "UTF-8", (char *) "?", NULL, &len, NULL); if (latin1 != NULL && *latin1 != '\0') { -- cgit v1.2.1