Commit 6d724292 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

splitmuxsink: Run gst_iterator_foreach() as long as it returns GST_ITERATOR_RESYNC

CID 1434160
parent 2662f58c
......@@ -1212,13 +1212,13 @@ start_next_fragment (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
GstEvent *ev;
ev = gst_event_new_flush_start ();
gst_iterator_foreach (it, _send_event, ev);
while (gst_iterator_foreach (it, _send_event, ev) == GST_ITERATOR_RESYNC);
gst_event_unref (ev);
gst_iterator_resync (it);
ev = gst_event_new_flush_stop (TRUE);
gst_iterator_foreach (it, _send_event, ev);
while (gst_iterator_foreach (it, _send_event, ev) == GST_ITERATOR_RESYNC);
gst_event_unref (ev);
gst_iterator_free (it);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment