mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
videomixer: When all sinkpads are eos, update output segment stop and forward it
https://bugzilla.gnome.org/show_bug.cgi?id=699793
This commit is contained in:
parent
521c9a7b5d
commit
2d3910fc79
1 changed files with 3 additions and 0 deletions
|
@ -1023,6 +1023,9 @@ gst_videomixer2_collected (GstCollectPads * pads, GstVideoMixer2 * mix)
|
||||||
goto done;
|
goto done;
|
||||||
} else if (res == -1) {
|
} else if (res == -1) {
|
||||||
GST_DEBUG_OBJECT (mix, "All sinkpads are EOS -- forwarding");
|
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 ());
|
gst_pad_push_event (mix->srcpad, gst_event_new_eos ());
|
||||||
ret = GST_FLOW_EOS;
|
ret = GST_FLOW_EOS;
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue