bin: fix the iterator copy
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 4 Nov 2011 18:17:06 +0000 (19:17 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 4 Nov 2011 18:17:06 +0000 (19:17 +0100)
gst/gstbin.c

index 52f87c1..91526dc 100644 (file)
@@ -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 (&copy->queue, (GFunc) gst_object_ref, NULL);
 
   copy->bin = gst_object_ref (it->bin);
   if (it->best)