From 30ee21eae36e7279f63b77167ba1dcf5f70b8e83 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 5 Nov 2020 13:48:27 +0200 Subject: tsparse: Forward incoming timestamps Ensure we properly forward the upstream PTS/DTS on the regular and program source pads. All packets being processed will carry over the latest PTS/DTS (as a reconstructed GstBuffer). Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1419 And properly forward PTS/DTS for program pads (which wasn't the case before) Original patch by Vivia Nikolaidou Part-of: --- gst/mpegtsdemux/mpegtspacketizer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/mpegtsdemux/mpegtspacketizer.h') diff --git a/gst/mpegtsdemux/mpegtspacketizer.h b/gst/mpegtsdemux/mpegtspacketizer.h index 1f12548b9..b2bfcfb50 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.h +++ b/gst/mpegtsdemux/mpegtspacketizer.h @@ -283,6 +283,10 @@ struct _MpegTSPacketizer2 { MpegTSPCR *observations[MAX_PCR_OBS_CHANNELS]; guint8 lastobsid; GstClockTime pcr_discont_threshold; + + /* PTS/DTS of last buffer */ + GstClockTime last_pts; + GstClockTime last_dts; }; struct _MpegTSPacketizer2Class { -- cgit v1.2.1