mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
audiorate: Fill segment until the end on EOS
This commit is contained in:
parent
4da242a6b2
commit
1c2846a0fc
1 changed files with 3 additions and 1 deletions
|
@ -376,7 +376,9 @@ gst_audio_rate_sink_event (GstPad * pad, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_EOS:
|
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);
|
res = gst_pad_push_event (audiorate->srcpad, event);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue