diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 01a65ffbc7..0937fb75d5 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -3505,7 +3505,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux, GST_OBJECT_LOCK (demux); earliest_time = videocontext->earliest_time; GST_OBJECT_UNLOCK (demux); - earliest_stream_time = gst_segment_to_position (&demux->common.segment, + earliest_stream_time = + gst_segment_position_from_running_time (&demux->common.segment, GST_FORMAT_TIME, earliest_time); if (GST_CLOCK_TIME_IS_VALID (lace_time) && diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c index 2735b39f65..9bc5ce1443 100644 --- a/gst/matroska/matroska-parse.c +++ b/gst/matroska/matroska-parse.c @@ -1839,7 +1839,8 @@ gst_matroska_parse_parse_blockgroup_or_simpleblock (GstMatroskaParse * parse, GST_OBJECT_LOCK (parse); earliest_time = videocontext->earliest_time; GST_OBJECT_UNLOCK (parse); - earliest_stream_time = gst_segment_to_position (&parse->common.segment, + earliest_stream_time = + gst_segment_position_from_running_time (&parse->common.segment, GST_FORMAT_TIME, earliest_time); if (GST_CLOCK_TIME_IS_VALID (lace_time) && diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 1014f580c6..a11c200b53 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2911,9 +2911,11 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint seqnum) } dts = - gst_segment_to_position (&priv->segment, GST_FORMAT_TIME, item->dts); + gst_segment_position_from_running_time (&priv->segment, + GST_FORMAT_TIME, item->dts); pts = - gst_segment_to_position (&priv->segment, GST_FORMAT_TIME, item->pts); + gst_segment_position_from_running_time (&priv->segment, + GST_FORMAT_TIME, item->pts); /* apply timestamp with offset to buffer now */ GST_BUFFER_DTS (outbuf) = apply_offset (jitterbuffer, dts);