mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpbin: set PTS and DTS in jitterbufffer
This commit is contained in:
parent
796c1d8029
commit
f4eef3f48d
2 changed files with 7 additions and 5 deletions
|
@ -1849,7 +1849,8 @@ push_buffer:
|
|||
}
|
||||
|
||||
/* apply timestamp with offset to buffer now */
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = out_time;
|
||||
GST_BUFFER_PTS (outbuf) = out_time;
|
||||
GST_BUFFER_DTS (outbuf) = out_time;
|
||||
|
||||
/* update the elapsed time when we need to check against the npt stop time. */
|
||||
if (priv->npt_stop != -1 && priv->ext_timestamp != -1
|
||||
|
|
|
@ -680,7 +680,8 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf,
|
|||
* receive time, this function will retimestamp @buf with the skew corrected
|
||||
* running time. */
|
||||
time = calculate_skew (jbuf, rtptime, time, clock_rate);
|
||||
GST_BUFFER_TIMESTAMP (buf) = time;
|
||||
GST_BUFFER_PTS (buf) = time;
|
||||
GST_BUFFER_DTS (buf) = time;
|
||||
|
||||
/* It's more likely that the packet was inserted in the front of the buffer */
|
||||
if (G_LIKELY (list))
|
||||
|
|
Loading…
Reference in a new issue