From ccd06b6d16f9768d0401138c06d937da838bb056 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 22 Mar 2010 13:16:33 +0100 Subject: [PATCH] Add -Wwrite-strings and fix its warnings --- plugins/elements/gstdataurisrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/elements/gstdataurisrc.c b/plugins/elements/gstdataurisrc.c index bb4b895..17ebf4b 100644 --- a/plugins/elements/gstdataurisrc.c +++ b/plugins/elements/gstdataurisrc.c @@ -314,7 +314,7 @@ gst_data_uri_src_get_uri_type (void) static gchar ** gst_data_uri_src_get_protocols (void) { - static gchar *protocols[] = { "data", 0 }; + static gchar *protocols[] = { (char *) "data", 0 }; return protocols; } @@ -423,8 +423,8 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri) gchar *data; data = - g_convert_with_fallback (old_data, -1, "UTF-8", charset, "*", &read, - &written, NULL); + g_convert_with_fallback (old_data, -1, "UTF-8", charset, (char *) "*", + &read, &written, NULL); g_free (old_data); GST_BUFFER_DATA (src->buffer) = GST_BUFFER_MALLOCDATA (src->buffer) = (guint8 *) data; -- 2.7.4