From ef1a5d21e5fc12f7c2de94b081c2a1ad357d09c1 Mon Sep 17 00:00:00 2001 From: Jeroen Wouters Date: Fri, 11 May 2007 14:28:55 +0000 Subject: [PATCH] gst/gsturi.c: Treat protocol strings in a case-insensitive way (#437563). Original commit message from CVS: Patch by: Jeroen Wouters * gst/gsturi.c: (gst_uri_get_protocol), (search_by_entry): Treat protocol strings in a case-insensitive way (#437563). --- ChangeLog | 7 +++++++ common | 2 +- gst/gsturi.c | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 16e9aba..a681da1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-11 Tim-Philipp Müller + + Patch by: Jeroen Wouters + + * gst/gsturi.c: (gst_uri_get_protocol), (search_by_entry): + Treat protocol strings in a case-insensitive way (#437563). + 2007-05-11 Michael Smith * gst/gstplugin.c: (gst_plugin_load_file): diff --git a/common b/common index 1b4fb58..b5971d7 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 1b4fb5836a9e290fe13895643d41e0166de8a94c +Subproject commit b5971d76ccd216c27e095c02c3a369a9d05cb36d diff --git a/gst/gsturi.c b/gst/gsturi.c index eb3cfed..b0a5554 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -369,7 +369,7 @@ gst_uri_get_protocol (const gchar * uri) colon = strstr (uri, "://"); - return g_strndup (uri, colon - uri); + return g_strdown (g_strndup (uri, colon - uri)); } /** @@ -485,7 +485,7 @@ search_by_entry (GstPluginFeature * feature, gpointer search_entry) } while (*protocols != NULL) { - if (strcmp (*protocols, entry->protocol) == 0) + if (g_ascii_strcasecmp (*protocols, entry->protocol) == 0) return TRUE; protocols++; } -- 2.7.4