diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index b85774f131..2cdcf40400 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -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 diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c index 512f0935d8..3b716a1e5c 100644 --- a/gst/rtpmanager/rtpjitterbuffer.c +++ b/gst/rtpmanager/rtpjitterbuffer.c @@ -608,7 +608,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf, GList *list; guint32 rtptime; guint16 seqnum; - GstRTPBuffer rtp = {NULL}; + GstRTPBuffer rtp = { NULL }; g_return_val_if_fail (jbuf != NULL, FALSE); g_return_val_if_fail (buf != NULL, FALSE); @@ -621,7 +621,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf, for (list = jbuf->packets->head; list; list = g_list_next (list)) { guint16 qseq; gint gap; - GstRTPBuffer rtpb = {NULL}; + GstRTPBuffer rtpb = { NULL }; gst_rtp_buffer_map (GST_BUFFER_CAST (list->data), GST_MAP_READ, &rtpb); qseq = gst_rtp_buffer_get_seq (&rtpb); @@ -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)) @@ -863,7 +864,7 @@ rtp_jitter_buffer_get_ts_diff (RTPJitterBuffer * jbuf) guint64 high_ts, low_ts; GstBuffer *high_buf, *low_buf; guint32 result; - GstRTPBuffer rtp = {NULL}; + GstRTPBuffer rtp = { NULL }; g_return_val_if_fail (jbuf != NULL, 0);