mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
rtpfunnel: Also write TWCC RTP header extension into buffer list buffers
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6110>
This commit is contained in:
parent
d49a2ae00f
commit
17e7af7181
1 changed files with 22 additions and 1 deletions
|
@ -259,6 +259,22 @@ map_failed:
|
|||
}
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GstRtpFunnel *funnel;
|
||||
GstPad *pad;
|
||||
} SetTwccSeqnumData;
|
||||
|
||||
static gboolean
|
||||
set_twcc_seqnum (GstBuffer ** buf, guint idx, gpointer user_data)
|
||||
{
|
||||
SetTwccSeqnumData *data = user_data;
|
||||
|
||||
gst_rtp_funnel_set_twcc_seqnum (data->funnel, data->pad, buf);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
gst_rtp_funnel_sink_chain_object (GstPad * pad, GstRtpFunnel * funnel,
|
||||
gboolean is_list, GstMiniObject * obj)
|
||||
|
@ -273,7 +289,12 @@ gst_rtp_funnel_sink_chain_object (GstPad * pad, GstRtpFunnel * funnel,
|
|||
gst_rtp_funnel_forward_segment (funnel, pad);
|
||||
|
||||
if (is_list) {
|
||||
res = gst_pad_push_list (funnel->srcpad, GST_BUFFER_LIST_CAST (obj));
|
||||
GstBufferList *list = GST_BUFFER_LIST_CAST (obj);
|
||||
SetTwccSeqnumData data = { funnel, pad };
|
||||
|
||||
list = gst_buffer_list_make_writable (list);
|
||||
gst_buffer_list_foreach (list, set_twcc_seqnum, &data);
|
||||
res = gst_pad_push_list (funnel->srcpad, list);
|
||||
} else {
|
||||
GstBuffer *buf = GST_BUFFER_CAST (obj);
|
||||
gst_rtp_funnel_set_twcc_seqnum (funnel, pad, &buf);
|
||||
|
|
Loading…
Reference in a new issue