diff options
author | Linus Svensson <linussn@axis.com> | 2018-10-16 12:31:57 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 16:53:20 +0100 |
commit | e6f975e18688a75276842bb9155ee3a8d4e21422 (patch) | |
tree | a0c76ed1550985f9fa88e71de935ef3cc9c33dd8 | |
parent | 3cc7cc757627dd70550d0db485a1234d26f7e2b9 (diff) | |
download | gstreamer-plugins-base-e6f975e18688a75276842bb9155ee3a8d4e21422.tar.gz |
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
-rw-r--r-- | gst-libs/gst/rtp/gstrtpbasepayload.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.c b/gst-libs/gst/rtp/gstrtpbasepayload.c index b411af0b8..cc66e9c24 100644 --- a/gst-libs/gst/rtp/gstrtpbasepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasepayload.c @@ -1244,6 +1244,8 @@ gst_rtp_base_payload_prepare_push (GstRTPBasePayload * payload, /* set ssrc, payload type, seq number, caps and rtptime */ if (is_list) { gst_buffer_list_foreach (GST_BUFFER_LIST_CAST (obj), set_headers, &data); + /* 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); |