mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
gst/rtpmanager/gstrtpjitterbuffer.c: Also configure the next expected output seqnum when we get a seqnum-base on the ...
Original commit message from CVS: * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_jitter_buffer_sink_parse_caps), (gst_rtp_jitter_buffer_chain): Also configure the next expected output seqnum when we get a seqnum-base on the caps.
This commit is contained in:
parent
b835296809
commit
6485d60a01
1 changed files with 5 additions and 5 deletions
|
@ -485,12 +485,12 @@ gst_jitter_buffer_sink_parse_caps (GstRtpJitterBuffer * jitterbuffer,
|
|||
GST_DEBUG_OBJECT (jitterbuffer, "got clock-base %" G_GINT64_FORMAT,
|
||||
priv->clock_base);
|
||||
|
||||
/* first expected seqnum, only update when we didn't have a previous base. */
|
||||
if (priv->next_in_seqnum == -1) {
|
||||
if (gst_structure_get_uint (caps_struct, "seqnum-base", &val))
|
||||
if (gst_structure_get_uint (caps_struct, "seqnum-base", &val)) {
|
||||
/* first expected seqnum, only update when we didn't have a previous base. */
|
||||
if (priv->next_in_seqnum == -1)
|
||||
priv->next_in_seqnum = val;
|
||||
else
|
||||
priv->next_in_seqnum = -1;
|
||||
if (priv->next_seqnum == -1)
|
||||
priv->next_seqnum = val;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (jitterbuffer, "got seqnum-base %d", priv->next_in_seqnum);
|
||||
|
|
Loading…
Reference in a new issue