mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
686c2f8e79
commit
0bb2e2f74f
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue