From 72ecbe2aeff131b8f0d5ffcc6d39f1703471f4d3 Mon Sep 17 00:00:00 2001 From: Linus Svensson Date: Tue, 16 Oct 2018 12:31:57 +0200 Subject: [PATCH] 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 --- gst-libs/gst/rtp/gstrtpbasepayload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.c b/gst-libs/gst/rtp/gstrtpbasepayload.c index 23129d9..352e862 100644 --- a/gst-libs/gst/rtp/gstrtpbasepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasepayload.c @@ -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); -- 2.7.4