From: Sebastian Dröge Date: Wed, 1 Sep 2010 09:37:37 +0000 (+0200) Subject: audiorate: Fill segment until the end on EOS X-Git-Tag: RELEASE-0.10.31~261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c2846a0fc153b39d6e829fe5909eff134427072;p=platform%2Fupstream%2Fgst-plugins-base.git audiorate: Fill segment until the end on EOS --- 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: