From 0bb2e2f74fbfaa4ea299a286e0d34de48b5b32eb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Jan 2014 10:27:20 +0100 Subject: [PATCH] mpegpsmux: update last_ts to mux correctly We use last_ts to decide what buffer to mux next so make sure that it always contains the last known valid timestamp. --- gst/mpegpsmux/mpegpsmux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c index b5529d3ec9..2b96fc136e 100644 --- a/gst/mpegpsmux/mpegpsmux.c +++ b/gst/mpegpsmux/mpegpsmux.c @@ -421,6 +421,9 @@ mpegpsmux_queue_buffer_for_stream (MpegPsMux * mux, MpegPsPadData * ps_data) ps_data->queued.ts = GST_CLOCK_TIME_NONE; } + if (ps_data->queued.ts != GST_CLOCK_TIME_NONE) + ps_data->last_ts = ps_data->queued.ts; + GST_DEBUG_OBJECT (mux, "Queued buffer with ts %" GST_TIME_FORMAT ": " "uncorrected pts %" GST_TIME_FORMAT " dts %" GST_TIME_FORMAT ", " "buffer pts %" GST_TIME_FORMAT " dts %" GST_TIME_FORMAT " for PID 0x%04x",