mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audiortppay: add some debugging
This commit is contained in:
parent
c1db9ebb20
commit
7a7663476f
1 changed files with 10 additions and 2 deletions
|
@ -668,11 +668,19 @@ gst_base_rtp_audio_payload_handle_buffer (GstBaseRTPPayload *
|
||||||
* output buffers containing the same RTP timestamp gap as the gap
|
* output buffers containing the same RTP timestamp gap as the gap
|
||||||
* between the GST timestamps. */
|
* between the GST timestamps. */
|
||||||
if (timestamp > priv->last_timestamp) {
|
if (timestamp > priv->last_timestamp) {
|
||||||
|
GstClockTime diff;
|
||||||
|
guint64 bytes;
|
||||||
/* we're only going to apply a positive gap, otherwise we let the marker
|
/* we're only going to apply a positive gap, otherwise we let the marker
|
||||||
* bit do its thing. simply convert to bytes and add the the current
|
* bit do its thing. simply convert to bytes and add the the current
|
||||||
* offset */
|
* offset */
|
||||||
priv->offset +=
|
diff = timestamp - priv->last_timestamp;
|
||||||
priv->time_to_bytes (payload, timestamp - priv->last_timestamp);
|
bytes = priv->time_to_bytes (payload, diff);
|
||||||
|
priv->offset += bytes;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (payload,
|
||||||
|
"elapsed time %" GST_TIME_FORMAT ", bytes %" G_GUINT64_FORMAT
|
||||||
|
", new offset %" G_GUINT64_FORMAT, GST_TIME_ARGS (diff), bytes,
|
||||||
|
priv->offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue