Commit 0bb2e2f7 authored by Wim Taymans's avatar Wim Taymans

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.
parent 686c2f8e
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment