mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
rtpgstpay: flush on EOS
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5173>
This commit is contained in:
parent
0631a59803
commit
519546aea3
1 changed files with 5 additions and 0 deletions
|
@ -539,6 +539,11 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
|
|||
g_atomic_int_set (&rtpgstpay->force_config, TRUE);
|
||||
}
|
||||
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
||||
// We must flush at this point, as no next input frame is expected
|
||||
gst_rtp_gst_pay_flush (rtpgstpay, GST_CLOCK_TIME_NONE);
|
||||
}
|
||||
|
||||
ret =
|
||||
GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload,
|
||||
gst_event_ref (event));
|
||||
|
|
Loading…
Reference in a new issue