bin: Resync iterator if necessary
authorSebastian Dröge <sebastian@centricular.com>
Fri, 15 Nov 2013 06:32:48 +0000 (07:32 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Nov 2013 11:43:18 +0000 (12:43 +0100)
gst/gstbin.c

index 4bfd6d54a9eb06fe2a26e9b8ca6f84b4464fe873..581b251e93cc77794220fd5f754113facb897476 100644 (file)
@@ -4086,7 +4086,8 @@ gst_bin_set_context (GstElement * element, GstContext * context)
 
   children = gst_bin_iterate_elements (bin);
   while (gst_iterator_foreach (children, set_context,
-          context) == GST_ITERATOR_RESYNC);
+          context) == GST_ITERATOR_RESYNC)
+    gst_iterator_resync (children);
   gst_iterator_free (children);
 }