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.
This commit is contained in:
Wim Taymans 2014-01-21 10:27:20 +01:00
parent 686c2f8e79
commit 0bb2e2f74f

View file

@ -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",