gst: Don't use deprecated gst_segment_to_position()
authorSebastian Dröge <sebastian@centricular.com>
Fri, 25 Sep 2015 22:12:46 +0000 (00:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 25 Sep 2015 22:12:46 +0000 (00:12 +0200)
gst/matroska/matroska-demux.c
gst/matroska/matroska-parse.c
gst/rtpmanager/gstrtpjitterbuffer.c

index 01a65ff..0937fb7 100644 (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) &&
index 2735b39..9bc5ce1 100644 (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) &&
index 1014f58..a11c200 100644 (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);