From a38c8b759ca2cf18a882d8630ebb6397351d535d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Nov 2011 19:17:06 +0100 Subject: [PATCH] bin: fix the iterator copy --- gst/gstbin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstbin.c b/gst/gstbin.c index 52f87c1..91526dc 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -1791,8 +1791,8 @@ gst_bin_sort_iterator_copy (const GstBinSortIterator * it, GHashTableIter iter; gpointer key, value; - copy->queue = g_queue_copy (it->queue); - g_queue_foreach (copy->queue, (GFunc) gst_object_ref, NULL); + copy->queue = it->queue; + g_queue_foreach (©->queue, (GFunc) gst_object_ref, NULL); copy->bin = gst_object_ref (it->bin); if (it->best) -- 2.7.4