mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videorate: flush remaining buffers on SEGMENT_DONE
Just as we do on EOS. https://bugzilla.gnome.org/show_bug.cgi?id=784666
This commit is contained in:
parent
6461ad057c
commit
875af55937
1 changed files with 3 additions and 1 deletions
|
@ -827,11 +827,13 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_SEGMENT_DONE:
|
||||
case GST_EVENT_EOS:{
|
||||
gint count = 0;
|
||||
GstFlowReturn res = GST_FLOW_OK;
|
||||
|
||||
GST_DEBUG_OBJECT (videorate, "Got EOS");
|
||||
GST_DEBUG_OBJECT (videorate, "Got %s",
|
||||
gst_event_type_get_name (GST_EVENT_TYPE (event)));
|
||||
|
||||
/* If the segment has a stop position, fill the segment */
|
||||
if (GST_CLOCK_TIME_IS_VALID (videorate->segment.stop)) {
|
||||
|
|
Loading…
Reference in a new issue