tsdemux: switch SCTE 35 sections handling to a passthrough model
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 22 Apr 2021 23:15:08 +0000 (01:15 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 25 Sep 2021 01:29:38 +0000 (01:29 +0000)
commit4af003bc02945402290d91bbae564f42657032c3
tree093398f75c3ba8aa8e63f4f3eb2dc3152627e7af
parent1477d76b7d6a7ed4cd19146287737bd5d320358d
tsdemux: switch SCTE 35 sections handling to a passthrough model

Instead of modifying the splice times in the incoming sections
to running time and expecting eg mpegtsmux to convert those back
to its local PES time domain, which might be impossible when
those splice times are encrypted or the specification is extended,
transmit the needed information to the muxer as separate fields in
the event:

* A pts offset field can be used by the muxer in order to calculate
  a final pts_adjustment

* A rtime_map can be used by the muxer to determine the correct
  running times at which it should request keyframes

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