summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux/mpegtspacketizer.h
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2020-11-05 13:48:27 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-12-02 14:22:06 +0000
commit30ee21eae36e7279f63b77167ba1dcf5f70b8e83 (patch)
treeba8ad3124f42d7b9d94e4e5399278be254023e5d /gst/mpegtsdemux/mpegtspacketizer.h
parent2f3e24542685567b1a7ebcfb567c8472af5810e1 (diff)
downloadgstreamer-plugins-bad-30ee21eae36e7279f63b77167ba1dcf5f70b8e83.tar.gz
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 <vivia@ahiru.eu> Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1769>
Diffstat (limited to 'gst/mpegtsdemux/mpegtspacketizer.h')
-rw-r--r--gst/mpegtsdemux/mpegtspacketizer.h4
1 files changed, 4 insertions, 0 deletions
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 {