rtpgstpay: flush on EOS

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5173>
This commit is contained in:
Mathieu Duponchelle 2024-02-16 18:11:07 +01:00 committed by GStreamer Marge Bot
parent 0631a59803
commit 519546aea3

View file

@ -539,6 +539,11 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
g_atomic_int_set (&rtpgstpay->force_config, TRUE); 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 = ret =
GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload, GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload,
gst_event_ref (event)); gst_event_ref (event));