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:
Linus Svensson 2018-10-16 12:31:57 +02:00 committed by Sebastian Dröge
parent 998749d2a6
commit 72ecbe2aef

View file

@ -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);