mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
hls: fix build with GLib 2.32
Provide internal copy of g_list_copy_deep() until we bump the GLib requirement. https://bugzilla.gnome.org/show_bug.cgi?id=731555
This commit is contained in:
parent
174fc1015e
commit
309395ed4d
1 changed files with 19 additions and 0 deletions
|
@ -30,6 +30,25 @@
|
|||
|
||||
#define GST_CAT_DEFAULT fragmented_debug
|
||||
|
||||
#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
|
||||
|
||||
static GstM3U8 *gst_m3u8_new (void);
|
||||
static void gst_m3u8_free (GstM3U8 * m3u8);
|
||||
static gboolean gst_m3u8_update (GstM3U8 * m3u8, gchar * data,
|
||||
|
|
Loading…
Reference in a new issue