mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
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
This commit is contained in:
parent
55c7656a03
commit
2b6298ebc5
1 changed files with 19 additions and 0 deletions
19
gst/gsturi.c
19
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue