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; GHashTableIter iter;
gpointer key, value; gpointer key, value;
copy->queue = g_queue_copy (it->queue); copy->queue = it->queue;
g_queue_foreach (copy->queue, (GFunc) gst_object_ref, NULL); g_queue_foreach (&copy->queue, (GFunc) gst_object_ref, NULL);
copy->bin = gst_object_ref (it->bin); copy->bin = gst_object_ref (it->bin);
if (it->best) if (it->best)