iterator: Only visit the element a single time in the single iterator
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 1 Sep 2009 08:20:59 +0000 (10:20 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 1 Sep 2009 08:20:59 +0000 (10:20 +0200)
gst/gstiterator.c

index ad5d708..6818996 100644 (file)
@@ -680,6 +680,7 @@ gst_single_object_iterator_iterator_next (GstSingleObjectIterator * it,
   }
 
   *result = it->copy (it->object);
+  it->visited = TRUE;
   return GST_ITERATOR_OK;
 }