From 875af55937199007013536b4e520c638f83e051c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 7 Apr 2017 20:41:57 +0200 Subject: [PATCH] videorate: flush remaining buffers on SEGMENT_DONE Just as we do on EOS. https://bugzilla.gnome.org/show_bug.cgi?id=784666 --- gst/videorate/gstvideorate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 5976432..7126e41 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -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)) { -- 2.7.4