gst_adapter_prev_timestamp -> gst_adapter_prev_pts
authorTim-Philipp Müller <tim@centricular.net>
Wed, 14 Nov 2012 00:03:15 +0000 (00:03 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 14 Nov 2012 00:03:15 +0000 (00:03 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=675598

ext/libvisual/gstaudiovisualizer.c
gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/audio/gstaudioencoder.c
gst-libs/gst/rtp/gstrtpbaseaudiopayload.c

index f7215dd..a7bd4c7 100644 (file)
@@ -907,7 +907,7 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
     GstVideoFrame outframe;
 
     /* get timestamp of the current adapter content */
-    ts = gst_adapter_prev_timestamp (scope->adapter, &dist);
+    ts = gst_adapter_prev_pts (scope->adapter, &dist);
     if (GST_CLOCK_TIME_IS_VALID (ts)) {
       /* convert bytes to time */
       dist /= bps;
index 9085bec..af888df 100644 (file)
@@ -1229,7 +1229,7 @@ gst_audio_decoder_push_buffers (GstAudioDecoder * dec, gboolean force)
         len = av;
       }
       /* track upstream ts, but do not get stuck if nothing new upstream */
-      ts = gst_adapter_prev_timestamp (priv->adapter, &distance);
+      ts = gst_adapter_prev_pts (priv->adapter, &distance);
       if (ts != priv->prev_ts || distance <= priv->prev_distance) {
         priv->prev_ts = ts;
         priv->prev_distance = distance;
index 9ee74a8..89cc710 100644 (file)
@@ -674,7 +674,7 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
     if (!enc->priv->perfect_ts) {
       guint64 ts, distance;
 
-      ts = gst_adapter_prev_timestamp (priv->adapter, &distance);
+      ts = gst_adapter_prev_pts (priv->adapter, &distance);
       g_assert (distance % ctx->info.bpf == 0);
       distance /= ctx->info.bpf;
       GST_LOG_OBJECT (enc, "%" G_GUINT64_FORMAT " samples past prev_ts %"
index ef02742..603fe5b 100644 (file)
@@ -583,7 +583,7 @@ gst_rtp_base_audio_payload_flush (GstRTPBaseAudioPayload * baseaudiopayload,
 
   if (timestamp == -1) {
     /* calculate the timestamp */
-    timestamp = gst_adapter_prev_timestamp (adapter, &distance);
+    timestamp = gst_adapter_prev_pts (adapter, &distance);
 
     GST_LOG_OBJECT (baseaudiopayload,
         "last timestamp %" GST_TIME_FORMAT ", distance %" G_GUINT64_FORMAT,