rtpjitterbuffer: gst_rtp_buffer_ext_timestamp() modifies its first argument, keep...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 16 Jun 2015 09:43:39 +0000 (11:43 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 16 Jun 2015 09:43:39 +0000 (11:43 +0200)
gst/rtpmanager/gstrtpjitterbuffer.c

index 4e29e426c0c6f751ea6e8ec12bc577b4fce49586..3b8432acc910e719c6a42d1763f60382a6a5e58c 100644 (file)
@@ -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)