rtpjitterbuffer: gst_rtp_buffer_ext_timestamp() modifies its first argument, keep a copy around

This commit is contained in:
Sebastian Dröge 2015-06-16 11:43:39 +02:00
parent 62a7bcb395
commit e9902430da

View file

@ -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)