rtpbin: set PTS and DTS in jitterbufffer

This commit is contained in:
Wim Taymans 2012-10-17 12:46:32 +02:00
parent 796c1d8029
commit f4eef3f48d
2 changed files with 7 additions and 5 deletions

View file

@ -1849,7 +1849,8 @@ push_buffer:
} }
/* apply timestamp with offset to buffer now */ /* 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. */ /* update the elapsed time when we need to check against the npt stop time. */
if (priv->npt_stop != -1 && priv->ext_timestamp != -1 if (priv->npt_stop != -1 && priv->ext_timestamp != -1

View file

@ -680,7 +680,8 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf,
* receive time, this function will retimestamp @buf with the skew corrected * receive time, this function will retimestamp @buf with the skew corrected
* running time. */ * running time. */
time = calculate_skew (jbuf, rtptime, time, clock_rate); 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 */ /* It's more likely that the packet was inserted in the front of the buffer */
if (G_LIKELY (list)) if (G_LIKELY (list))