From a1fc9987ca831bcecb7f7b5b4f2c8fec12832752 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 30 Dec 2010 18:02:06 -0800 Subject: [PATCH] dataurisrc: use g_ascii_strcasecmp() --- plugins/elements/gstdataurisrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/elements/gstdataurisrc.c b/plugins/elements/gstdataurisrc.c index 17ebf4b..446ca84 100644 --- a/plugins/elements/gstdataurisrc.c +++ b/plugins/elements/gstdataurisrc.c @@ -415,8 +415,8 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri) /* Convert to UTF8 */ if (strcmp ("text/plain", mimetype) == 0 && - charset && strcasecmp ("US-ASCII", charset) != 0 - && strcasecmp ("UTF-8", charset) != 0) { + charset && g_ascii_strcasecmp ("US-ASCII", charset) != 0 + && g_ascii_strcasecmp ("UTF-8", charset) != 0) { gsize read; gsize written; gchar *old_data = (gchar *) GST_BUFFER_DATA (src->buffer); -- 2.7.4