gst: Don't use deprecated gst_segment_to_position()

This commit is contained in:
Sebastian Dröge 2015-09-26 00:12:46 +02:00
parent 01c0f8723f
commit 7046852e7d
3 changed files with 8 additions and 4 deletions

View file

@ -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) &&

View file

@ -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) &&

View file

@ -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);