From 2b6298ebc5277f939083123480a430cc4ffe9c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Sep 2014 17:48:29 +0300 Subject: [PATCH] uri: Don't unconditionally use g_list_copy_deep() We don't depend on GLib 2.34 yet and just for this seems a bit useless. https://bugzilla.gnome.org/show_bug.cgi?id=737584 --- gst/gsturi.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gst/gsturi.c b/gst/gsturi.c index 5333f433fd..4584be991c 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -118,6 +118,25 @@ _gst_ascii_strcasestr (const gchar * s, const gchar * find) } #endif +#if !GLIB_CHECK_VERSION (2, 33, 4) +#define g_list_copy_deep gst_g_list_copy_deep +static GList * +gst_g_list_copy_deep (GList * list, GCopyFunc func, gpointer user_data) +{ + list = g_list_copy (list); + + if (func != NULL) { + GList *l; + + for (l = list; l != NULL; l = l->next) { + l->data = func (l->data, user_data); + } + } + + return list; +} +#endif + GType gst_uri_handler_get_type (void) {