From 1c2846a0fc153b39d6e829fe5909eff134427072 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Wed, 1 Sep 2010 11:37:37 +0200 Subject: audiorate: Fill segment until the end on EOS --- gst/audiorate/gstaudiorate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index fc6c84270..9530a436d 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -376,7 +376,9 @@ gst_audio_rate_sink_event (GstPad * pad, GstEvent * event) break; } case GST_EVENT_EOS: - /* FIXME, fill last segment */ + /* Fill segment until the end */ + if (GST_CLOCK_TIME_IS_VALID (audiorate->src_segment.stop)) + gst_audio_rate_fill_to_time (audiorate, audiorate->src_segment.stop); res = gst_pad_push_event (audiorate->srcpad, event); break; default: -- cgit v1.2.3