Commit fdaa7a7a authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

gst-libs/gst/rtp/gstbasertppayload.c: update seqnum before setting it on the...

gst-libs/gst/rtp/gstbasertppayload.c: update seqnum before setting it on the packet; this makes sure that the timesta...

Original commit message from CVS:

* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_setcaps), (gst_basertppayload_push):
update seqnum before setting it on the packet; this makes sure
that the timestamp and seqnum properties match after pushing
a buffer
parent 36905845
2006-02-09 Thomas Vander Stichele <thomas at apestaart dot org>
* gst-libs/gst/rtp/gstbasertppayload.c:
(gst_basertppayload_setcaps), (gst_basertppayload_push):
update seqnum before setting it on the packet; this makes sure
that the timestamp and seqnum properties match after pushing
a buffer
2006-02-09 Andy Wingo <wingo@pobox.com>
 
* gst-libs/gst/audio/gstringbuffer.c
......
......@@ -223,6 +223,7 @@ gst_basertppayload_setcaps (GstPad * pad, GstCaps * caps)
GstBaseRTPPayloadClass *basertppayload_class;
gboolean ret = TRUE;
GST_DEBUG_OBJECT (pad, "setting caps %" GST_PTR_FORMAT, caps);
basertppayload = GST_BASE_RTP_PAYLOAD (gst_pad_get_parent (pad));
basertppayload_class = GST_BASE_RTP_PAYLOAD_GET_CLASS (basertppayload);
......@@ -377,7 +378,10 @@ gst_basertppayload_push (GstBaseRTPPayload * payload, GstBuffer * buffer)
gst_rtp_buffer_set_payload_type (buffer, payload->pt);
/* can wrap around, which is perfectly fine */
gst_rtp_buffer_set_seq (buffer, payload->seqnum++);
/* update first, so that the property is set to the last
* seqnum pushed */
payload->seqnum++;
gst_rtp_buffer_set_seq (buffer, payload->seqnum);
/* add our random offset to the timestamp */
ts = payload->ts_base;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment