summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-01 11:37:37 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-01 11:37:37 +0200
commit1c2846a0fc153b39d6e829fe5909eff134427072 (patch)
treef1e894dc526e173039d63ea6613b745581c29c37
parent4da242a6b2c57b03e2dc4107c7b34c261e5767db (diff)
audiorate: Fill segment until the end on EOS
-rw-r--r--gst/audiorate/gstaudiorate.c4
1 files changed, 3 insertions, 1 deletions
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: