From 69f65800b3a575de724d77662713abb7f32e53a8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 5 Feb 2003 23:23:41 +0000 Subject: [PATCH] Fix uri function.. Original commit message from CVS: Fix uri function.. --- gst/gsturi.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gst/gsturi.c b/gst/gsturi.c index e835cc9281..5e923e6b29 100644 --- a/gst/gsturi.c +++ b/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; } /**