From 1c2846a0fc153b39d6e829fe5909eff134427072 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 Sep 2010 11:37:37 +0200 Subject: [PATCH] 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 fc6c842..9530a43 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: -- 2.7.4