basetsmux: fix SCTE pts_adjustment with offsets
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 4 May 2021 12:38:28 +0000 (14:38 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 25 Sep 2021 01:29:38 +0000 (01:29 +0000)
commitc2eeb639b04e0a13928208abebdb896eb06c258c
tree54c7b3b4375d6aa053d7f8514a81003d3444d568
parentc3a161f2870666043b81daff6bdd9d2d59503f2a
basetsmux: fix SCTE pts_adjustment with offsets

When there are elements between the demuxer and the muxer that
introduce an offset to the running time, or when offsets are
set on pads by the application, this shift must be taken into
account when calculating the final pts_adjustement.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/913>
subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c