mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtpgstpay: Set DELTA_UNIT flag when appropriate
When used in combination with a rtponviftimestamp element downstream, forwarding this flag ensures it gets correctly serialized in the ONVIF header extension.
This commit is contained in:
parent
435f67debf
commit
74e3eb1f1d
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ gst_rtp_gst_pay_create_from_adapter (GstRtpGSTPay * rtpgstpay,
|
|||
GST_DEBUG_OBJECT (rtpgstpay, "take %u bytes from adapter", payload_len);
|
||||
paybuf = gst_adapter_take_buffer_fast (rtpgstpay->adapter, payload_len);
|
||||
|
||||
if (GST_BUFFER_FLAG_IS_SET (paybuf, GST_BUFFER_FLAG_DELTA_UNIT))
|
||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
|
||||
/* create a new group to hold the rtp header and the payload */
|
||||
gst_rtp_copy_meta (GST_ELEMENT_CAST (rtpgstpay), outbuf, paybuf, 0);
|
||||
outbuf = gst_buffer_append (outbuf, paybuf);
|
||||
|
|
Loading…
Reference in a new issue