mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
jitterbuffer: handle segments with non-0 start
We keep the DTS and PTS in running-time inside the jitterbuffer. Make sure to transform it back to a buffer timestamp before pushing out the buffer. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=707931
This commit is contained in:
parent
9d3dbd6581
commit
9f9ba21404
1 changed files with 3 additions and 0 deletions
|
@ -2071,6 +2071,9 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint16 seqnum)
|
|||
dts = GST_BUFFER_DTS (outbuf);
|
||||
pts = GST_BUFFER_PTS (outbuf);
|
||||
|
||||
dts = gst_segment_to_position (&priv->segment, GST_FORMAT_TIME, dts);
|
||||
pts = gst_segment_to_position (&priv->segment, GST_FORMAT_TIME, pts);
|
||||
|
||||
/* apply timestamp with offset to buffer now */
|
||||
GST_BUFFER_DTS (outbuf) = apply_offset (jitterbuffer, dts);
|
||||
GST_BUFFER_PTS (outbuf) = apply_offset (jitterbuffer, pts);
|
||||
|
|
Loading…
Reference in a new issue