From 1a6dbe1e273dff4e5a6e9e9c7936589ce62a7eca Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 7 Sep 2011 12:32:48 +0100 Subject: [PATCH] mpegvideoparse: make this build with older glib g_list_free_full is a new convenience function. Replace it with g_list_foreach and g_list_free. https://bugzilla.gnome.org/show_bug.cgi?id=658450 --- gst/videoparsers/gstmpegvideoparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index aac1f35bc6..2be478c6ee 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -497,7 +497,8 @@ end: ret = FALSE; } - g_list_free_full (mpvparse->typeoffsize, (GDestroyNotify) g_free); + g_list_foreach (mpvparse->typeoffsize, (GFunc) g_free, NULL); + g_list_free (mpvparse->typeoffsize); mpvparse->typeoffsize = NULL; return ret;