mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
rtpbasepayload: Update current seqnum for buffer lists
The current sequence number will be the one from the first RTP buffer when a buffer list is pushed, but should be the last one. Fixes #495
This commit is contained in:
parent
998749d2a6
commit
72ecbe2aef
1 changed files with 2 additions and 0 deletions
|
@ -1306,6 +1306,8 @@ gst_rtp_base_payload_prepare_push (GstRTPBasePayload * payload,
|
|||
if (is_list) {
|
||||
gst_buffer_list_foreach (GST_BUFFER_LIST_CAST (obj), set_headers, &data);
|
||||
gst_buffer_list_foreach (GST_BUFFER_LIST_CAST (obj), filter_meta, NULL);
|
||||
/* sequence number has increased more if this was a buffer list */
|
||||
payload->seqnum = data.seqnum - 1;
|
||||
} else {
|
||||
GstBuffer *buf = GST_BUFFER_CAST (obj);
|
||||
set_headers (&buf, 0, &data);
|
||||
|
|
Loading…
Reference in a new issue