mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gst/rtpmanager/gstrtpjitterbuffer.c: Only update the seqnum-base when it was not already configured for the streams.
Original commit message from CVS: * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_jitter_buffer_sink_parse_caps): Only update the seqnum-base when it was not already configured for the streams.
This commit is contained in:
parent
55b7860cc4
commit
4553863755
1 changed files with 7 additions and 5 deletions
|
@ -482,11 +482,13 @@ gst_jitter_buffer_sink_parse_caps (GstRtpJitterBuffer * jitterbuffer,
|
|||
GST_DEBUG_OBJECT (jitterbuffer, "got clock-base %" G_GINT64_FORMAT,
|
||||
priv->clock_base);
|
||||
|
||||
/* first expected seqnum */
|
||||
if (gst_structure_get_uint (caps_struct, "seqnum-base", &val))
|
||||
priv->next_seqnum = val;
|
||||
else
|
||||
priv->next_seqnum = -1;
|
||||
/* first expected seqnum, only update when we didn't have a previous base. */
|
||||
if (priv->next_seqnum == -1) {
|
||||
if (gst_structure_get_uint (caps_struct, "seqnum-base", &val))
|
||||
priv->next_seqnum = val;
|
||||
else
|
||||
priv->next_seqnum = -1;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (jitterbuffer, "got seqnum-base %d", priv->next_seqnum);
|
||||
|
||||
|
|
Loading…
Reference in a new issue