dvbsubenc: Forward GAP events as-is if we wouldn't produce an end packet and are...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 7 Dec 2022 08:21:52 +0000 (10:21 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 7 Dec 2022 08:21:52 +0000 (10:21 +0200)
commit22c326edea1952d4075f8c87d832b05b1ae60378
tree582311ff73b081b4d9fce1e95ab5a6e5a03358ed
parent95979e3a4b1fe7b167cd351a15bb966f9ba1a7b5
dvbsubenc: Forward GAP events as-is if we wouldn't produce an end packet and are not in the middle of an existing subtitle

An end packet is only produced once for the last subtitle, so multiple
GAP events between subtitles would result only in a single end packet
and nothing else otherwise. This would potentially starve downstream
then, so instead forward the GAP events in that case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3534>
subprojects/gst-plugins-bad/gst/dvbsubenc/gstdvbsubenc.c