summaryrefslogtreecommitdiff
path: root/gst/id3tag
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-22 13:16:33 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-22 13:16:33 +0100
commit33c2f5fb01b1cb9145751a745cfa2514421fa7b3 (patch)
treef8c0318f6d50928ee96ed1e8663a0c0c5fce7d3e /gst/id3tag
parent010789159d7bf274e11f0b4bec5c66543ad1220f (diff)
downloadgstreamer-plugins-bad-33c2f5fb01b1cb9145751a745cfa2514421fa7b3.tar.gz
Add -Wwrite-strings
and fix its warnings
Diffstat (limited to 'gst/id3tag')
-rw-r--r--gst/id3tag/id3tag.c5
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') {