diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-22 13:16:33 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-22 13:16:33 +0100 |
commit | 33c2f5fb01b1cb9145751a745cfa2514421fa7b3 (patch) | |
tree | f8c0318f6d50928ee96ed1e8663a0c0c5fce7d3e /gst/id3tag | |
parent | 010789159d7bf274e11f0b4bec5c66543ad1220f (diff) | |
download | gstreamer-plugins-bad-33c2f5fb01b1cb9145751a745cfa2514421fa7b3.tar.gz |
Add -Wwrite-strings
and fix its warnings
Diffstat (limited to 'gst/id3tag')
-rw-r--r-- | gst/id3tag/id3tag.c | 5 |
1 files changed, 3 insertions, 2 deletions
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') { |