rtpklvdepay: Enabled header extension aggregation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5378>
This commit is contained in:
Jochen Henneberg 2023-09-04 17:31:41 +02:00 committed by GStreamer Marge Bot
parent 2c3f169ebb
commit 90b5d2eb93

View file

@ -108,6 +108,9 @@ gst_rtp_klv_depay_class_init (GstRtpKlvDepayClass * klass)
static void static void
gst_rtp_klv_depay_init (GstRtpKlvDepay * klvdepay) gst_rtp_klv_depay_init (GstRtpKlvDepay * klvdepay)
{ {
gst_rtp_base_depayload_set_aggregate_hdrext_enabled (GST_RTP_BASE_DEPAYLOAD
(klvdepay), TRUE);
klvdepay->adapter = gst_adapter_new (); klvdepay->adapter = gst_adapter_new ();
} }
@ -261,6 +264,7 @@ gst_rtp_klv_depay_process_data (GstRtpKlvDepay * klvdepay)
bad_klv_packet: bad_klv_packet:
{ {
GST_WARNING_OBJECT (klvdepay, "bad KLV packet, dropping"); GST_WARNING_OBJECT (klvdepay, "bad KLV packet, dropping");
gst_rtp_base_depayload_flush (GST_RTP_BASE_DEPAYLOAD (klvdepay), TRUE);
gst_rtp_klv_depay_reset (klvdepay); gst_rtp_klv_depay_reset (klvdepay);
return NULL; return NULL;
} }
@ -357,6 +361,8 @@ gst_rtp_klv_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
if (marker) if (marker)
outbuf = gst_rtp_klv_depay_process_data (klvdepay); outbuf = gst_rtp_klv_depay_process_data (klvdepay);
else if (outbuf)
gst_rtp_base_depayload_delayed (depayload);
done: done: