mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
basertpaudiopayload: Set duration on buffers
Set the duration of the buffers from their size
This commit is contained in:
parent
1990364816
commit
8a2b81a576
1 changed files with 3 additions and 0 deletions
|
@ -426,6 +426,9 @@ gst_base_rtp_audio_payload_set_meta (GstBaseRTPAudioPayload * payload,
|
|||
|
||||
priv->offset += payload_len;
|
||||
|
||||
/* Set the duration from the size */
|
||||
GST_BUFFER_DURATION (buffer) = priv->bytes_to_time (payload, payload_len);
|
||||
|
||||
/* remember the last rtptime/timestamp pair. We will use this to realign our
|
||||
* RTP timestamp after a buffer discont */
|
||||
priv->last_rtptime = GST_BUFFER_OFFSET (buffer);
|
||||
|
|
Loading…
Reference in a new issue