projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccd06b6
)
dataurisrc: use g_ascii_strcasecmp()
author
David Schleef
<ds@schleef.org>
Fri, 31 Dec 2010 02:02:06 +0000
(18:02 -0800)
committer
David Schleef
<ds@schleef.org>
Fri, 31 Dec 2010 02:08:32 +0000
(18:08 -0800)
plugins/elements/gstdataurisrc.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstdataurisrc.c
b/plugins/elements/gstdataurisrc.c
index
17ebf4b
..
446ca84
100644
(file)
--- 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);