mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
Fix uri function..
Original commit message from CVS: Fix uri function..
This commit is contained in:
parent
637326bc8d
commit
69f65800b3
1 changed files with 6 additions and 5 deletions
11
gst/gsturi.c
11
gst/gsturi.c
|
@ -170,23 +170,24 @@ GstURIHandler*
|
|||
gst_uri_handler_find_by_uri (const gchar *uri)
|
||||
{
|
||||
GList *walk, *orig;
|
||||
GstURIHandler *handler = NULL;
|
||||
GstURIHandler *result = NULL;
|
||||
|
||||
g_return_val_if_fail (uri != NULL, NULL);
|
||||
|
||||
orig = walk = gst_registry_pool_feature_list (GST_TYPE_URI_HANDLER);
|
||||
|
||||
while (walk) {
|
||||
handler = GST_URI_HANDLER (walk->data);
|
||||
GstURIHandler *handler = GST_URI_HANDLER (walk->data);
|
||||
|
||||
if (g_str_has_prefix_glib22 ((gchar *) uri, handler->uri))
|
||||
if (g_str_has_prefix_glib22 ((gchar *) uri, handler->uri)) {
|
||||
result = handler;
|
||||
break;
|
||||
|
||||
}
|
||||
walk = g_list_next (walk);
|
||||
}
|
||||
g_list_free (orig);
|
||||
|
||||
return handler;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue