From 5bc3de3af4f684c42fb4751b7942e77d7cdf7759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 15 Nov 2013 07:32:48 +0100 Subject: [PATCH] bin: Resync iterator if necessary --- gst/gstbin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstbin.c b/gst/gstbin.c index 4bfd6d54a9..581b251e93 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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); }