Commit 7046852e authored by Sebastian Dröge's avatar Sebastian Dröge

gst: Don't use deprecated gst_segment_to_position()

parent 01c0f872
......@@ -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) &&
......
......@@ -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) &&
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment