mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst/gsturi.c: Treat protocol strings in a case-insensitive way (#437563).
Original commit message from CVS: Patch by: Jeroen Wouters <woutersj at gmail com> * gst/gsturi.c: (gst_uri_get_protocol), (search_by_entry): Treat protocol strings in a case-insensitive way (#437563).
This commit is contained in:
parent
05181a07da
commit
ef1a5d21e5
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2007-05-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Jeroen Wouters <woutersj at gmail com>
|
||||
|
||||
* gst/gsturi.c: (gst_uri_get_protocol), (search_by_entry):
|
||||
Treat protocol strings in a case-insensitive way (#437563).
|
||||
|
||||
2007-05-11 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* gst/gstplugin.c: (gst_plugin_load_file):
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 1b4fb5836a9e290fe13895643d41e0166de8a94c
|
||||
Subproject commit b5971d76ccd216c27e095c02c3a369a9d05cb36d
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue