From 2d3910fc7901b5f29e16c0fdd4e9067a6d7f66fe Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 20 May 2013 19:59:13 +0200 Subject: [PATCH] videomixer: When all sinkpads are eos, update output segment stop and forward it https://bugzilla.gnome.org/show_bug.cgi?id=699793 --- gst/videomixer/videomixer2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index 6fe9b9222a..e3c1ddc13b 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -1023,6 +1023,9 @@ gst_videomixer2_collected (GstCollectPads * pads, GstVideoMixer2 * mix) goto done; } else if (res == -1) { GST_DEBUG_OBJECT (mix, "All sinkpads are EOS -- forwarding"); + + mix->segment.stop = output_end_time; + gst_pad_push_event (mix->srcpad, gst_event_new_segment (&mix->segment)); gst_pad_push_event (mix->srcpad, gst_event_new_eos ()); ret = GST_FLOW_EOS; goto done;