From: Sebastian Dröge Date: Tue, 16 Jun 2015 09:43:39 +0000 (+0200) Subject: rtpjitterbuffer: gst_rtp_buffer_ext_timestamp() modifies its first argument, keep... X-Git-Tag: 1.19.3~509^2~3520 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9902430daaf283a28789e33c6e00f070a09594d;p=platform%2Fupstream%2Fgstreamer.git rtpjitterbuffer: gst_rtp_buffer_ext_timestamp() modifies its first argument, keep a copy around --- diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 4e29e426c0..3b8432acc9 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2717,9 +2717,12 @@ compute_elapsed (GstRtpJitterBuffer * jitterbuffer, RTPJitterBufferItem * item) GST_LOG_OBJECT (jitterbuffer, "rtp %" G_GUINT32_FORMAT ", ext %" 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) { ext_time = priv->ext_timestamp; + } else { + priv->ext_timestamp = ext_time; } if (ext_time > priv->clock_base)