From 3c2312ce6bdfa91607f1dfb2b1d2410299f0f1da Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 21 May 2019 17:15:52 +0200 Subject: [PATCH] dataurisrc: Allow case-insensitive scheme Quoting RFC 2396: For resiliency, programs interpreting URI should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http"). --- plugins/elements/gstdataurisrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstdataurisrc.c b/plugins/elements/gstdataurisrc.c index e35d012dd0..316966f5f2 100644 --- a/plugins/elements/gstdataurisrc.c +++ b/plugins/elements/gstdataurisrc.c @@ -334,7 +334,7 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri, /* uri must be an URI as defined in RFC 2397 * data:[][;base64], */ - if (strncmp ("data:", uri, 5) != 0) + if (g_ascii_strncasecmp ("data:", uri, 5) != 0) goto invalid_uri; uri += 5;