bin: fix the iterator copy

This commit is contained in:
Wim Taymans 2011-11-04 19:17:06 +01:00
parent c2c9776027
commit a38c8b759c

View 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)