tsdemux: Don't trigger a program change when falling back to ignore-pcr behaviour
authorMart Raudsepp <mart@leio.tech>
Tue, 20 Sep 2022 20:31:45 +0000 (23:31 +0300)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 28 Sep 2022 07:18:45 +0000 (07:18 +0000)
commit8a2edc6581c0f34a0e9efba146c520cce1410d29
tree2ed1b1bcbcdc18ecae0f535b3673d5e50ea32407
parent453b0cec82ddc235489e332cfc7b63421451b679
tsdemux: Don't trigger a program change when falling back to ignore-pcr behaviour

Since commit a79a756b79aa1675e we could change to ignore-pcr automatically at 500ms
into a live stream when no PCR is seen by then. However the stream counting in
program change detection was wrongly considering ignore-pcr programs to have a
separate PCR PID, even though we are actually ignoring the PCR PID completely,
resulting in an erroneous program switch getting triggered from the different
stream count. This in turn would send an EOS and switch out the pads for what
actually is still the same program, while we intended to simply apply a
workaround for broken encoders.

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