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;
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;
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 %"
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,