mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
rtponviftimestamp: add extension data to all packets ..
regardless of whether they are input as individual buffers or buffer lists. The ONVIF specification requires all packets to hold the extension, it makes no sense to behave differently when handling buffer lists. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2303>
This commit is contained in:
parent
3c959ff53e
commit
efc29565d6
1 changed files with 8 additions and 5 deletions
|
@ -732,15 +732,18 @@ gst_rtp_onvif_timestamp_chain (GstPad * pad, GstObject * parent,
|
|||
return result;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
do_handle_buffer (GstBuffer ** buffer, guint idx, GstRtpOnvifTimestamp * self)
|
||||
{
|
||||
return handle_buffer (self, *buffer);
|
||||
}
|
||||
|
||||
/* @buf: (transfer full) */
|
||||
static GstFlowReturn
|
||||
handle_and_push_buffer_list (GstRtpOnvifTimestamp * self, GstBufferList * list)
|
||||
{
|
||||
GstBuffer *buf;
|
||||
|
||||
/* Set the extension on the *first* buffer */
|
||||
buf = gst_buffer_list_get (list, 0);
|
||||
if (!handle_buffer (self, buf)) {
|
||||
if (!gst_buffer_list_foreach (list, (GstBufferListFunc) do_handle_buffer,
|
||||
self)) {
|
||||
gst_buffer_list_unref (list);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue