basetsmux: rework SCTE section handling to handle passthrough
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 22 Apr 2021 23:22:32 +0000 (01:22 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 25 Sep 2021 01:29:38 +0000 (01:29 +0000)
commitc3a161f2870666043b81daff6bdd9d2d59503f2a
treec35c7c57c96623360b7000c8bc33bac139052bd8
parente4f40ba5262163efa5d7a88418d9e651fee7d733
basetsmux: rework SCTE section handling to handle passthrough

mpegtsmux can receive SCTE sections from two origins: events
created by the application, and events forwarded downstream by
mpegtsdemux, containing sections that may not have been fully
parsed, and additional data to help tsmux translate times to
the correct domain, both for requesting keyframes and calculating
an accurate pts_adjustment.

The complete approach is documented further in a comment above
the relevant function.

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