mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpjitterbuffer: gst_rtp_buffer_ext_timestamp() modifies its first argument, keep a copy around
This commit is contained in:
parent
62a7bcb395
commit
e9902430da
1 changed files with 4 additions and 1 deletions
|
@ -2717,9 +2717,12 @@ compute_elapsed (GstRtpJitterBuffer * jitterbuffer, RTPJitterBufferItem * item)
|
||||||
GST_LOG_OBJECT (jitterbuffer, "rtp %" G_GUINT32_FORMAT ", ext %"
|
GST_LOG_OBJECT (jitterbuffer, "rtp %" G_GUINT32_FORMAT ", ext %"
|
||||||
G_GUINT64_FORMAT, rtp_time, priv->ext_timestamp);
|
G_GUINT64_FORMAT, rtp_time, priv->ext_timestamp);
|
||||||
|
|
||||||
ext_time = gst_rtp_buffer_ext_timestamp (&priv->ext_timestamp, rtp_time);
|
ext_time = priv->ext_timestamp;
|
||||||
|
ext_time = gst_rtp_buffer_ext_timestamp (&ext_time, rtp_time);
|
||||||
if (ext_time < priv->ext_timestamp) {
|
if (ext_time < priv->ext_timestamp) {
|
||||||
ext_time = priv->ext_timestamp;
|
ext_time = priv->ext_timestamp;
|
||||||
|
} else {
|
||||||
|
priv->ext_timestamp = ext_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ext_time > priv->clock_base)
|
if (ext_time > priv->clock_base)
|
||||||
|
|
Loading…
Reference in a new issue