mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst-libs/gst/rtp/gstbasertppayload.c: Configure the next seqnum and timestamp in the state change so that they can be...
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_change_state): Configure the next seqnum and timestamp in the state change so that they can be queried soon after.
This commit is contained in:
parent
b86ef2dcf2
commit
a2eb053641
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-10-06 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertppayload.c:
|
||||
(gst_basertppayload_change_state):
|
||||
Configure the next seqnum and timestamp in the state change so that they
|
||||
can be queried soon after.
|
||||
|
||||
2008-10-06 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertpdepayload.c:
|
||||
|
|
|
@ -816,6 +816,7 @@ gst_basertppayload_change_state (GstElement * element,
|
|||
else
|
||||
basertppayload->seqnum_base = basertppayload->seqnum_offset;
|
||||
priv->next_seqnum = basertppayload->seqnum_base;
|
||||
basertppayload->seqnum = basertppayload->seqnum_base;
|
||||
|
||||
if (priv->ssrc_random)
|
||||
basertppayload->current_ssrc = g_rand_int (basertppayload->ssrc_rand);
|
||||
|
@ -826,6 +827,7 @@ gst_basertppayload_change_state (GstElement * element,
|
|||
basertppayload->ts_base = g_rand_int (basertppayload->ts_rand);
|
||||
else
|
||||
basertppayload->ts_base = basertppayload->ts_offset;
|
||||
basertppayload->timestamp = basertppayload->ts_base;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue