diff options
-rw-r--r-- | gst/multifile/gstsplitmuxpartreader.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gst/multifile/gstsplitmuxpartreader.c b/gst/multifile/gstsplitmuxpartreader.c index 1753b3744..0573d69be 100644 --- a/gst/multifile/gstsplitmuxpartreader.c +++ b/gst/multifile/gstsplitmuxpartreader.c @@ -133,7 +133,7 @@ static void handle_buffer_measuring (GstSplitMuxPartReader * reader, GstSplitMuxPartPad * part_pad, GstBuffer * buf) { - GstClockTime ts = GST_CLOCK_TIME_NONE; + GstClockTimeDiff ts = GST_CLOCK_STIME_NONE; GstClockTimeDiff offset; if (reader->prep_state == PART_STATE_PREPARING_COLLECT_STREAMS && @@ -164,16 +164,17 @@ handle_buffer_measuring (GstSplitMuxPartReader * reader, GST_DEBUG_OBJECT (reader, "Pad %" GST_PTR_FORMAT " incoming PTS %" GST_TIME_FORMAT " DTS %" GST_TIME_FORMAT " offset by %" GST_STIME_FORMAT - " to %" GST_TIME_FORMAT, part_pad, + " to %" GST_STIME_FORMAT, part_pad, GST_TIME_ARGS (GST_BUFFER_DTS (buf)), GST_TIME_ARGS (GST_BUFFER_PTS (buf)), - GST_STIME_ARGS (offset), GST_TIME_ARGS (ts)); + GST_STIME_ARGS (offset), GST_STIME_ARGS (ts)); - if (GST_CLOCK_TIME_IS_VALID (ts)) { + if (GST_CLOCK_STIME_IS_VALID (ts)) { if (GST_BUFFER_DURATION_IS_VALID (buf)) ts += GST_BUFFER_DURATION (buf); - if (GST_CLOCK_TIME_IS_VALID (ts) && ts > part_pad->max_ts) { + if (GST_CLOCK_STIME_IS_VALID (ts) + && ts > (GstClockTimeDiff) part_pad->max_ts) { part_pad->max_ts = ts; GST_LOG_OBJECT (reader, "pad %" GST_PTR_FORMAT " max TS now %" GST_TIME_FORMAT, part_pad, |