audiorate: Fill segment until the end on EOS

This commit is contained in:
Sebastian Dröge 2010-09-01 11:37:37 +02:00
parent 4da242a6b2
commit 1c2846a0fc

View file

@ -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: