ccconverter: fix framerate passthrough with malformed input
authorMatthew Waters <matthew@centricular.com>
Thu, 5 May 2022 08:27:50 +0000 (18:27 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 10 Nov 2022 00:52:14 +0000 (00:52 +0000)
commit542060fea71c13b8c34b0ea0deb8d39e564c2d5a
treec01b3ba9730e7128560eed56e45e76ba39be27c0
parentb36b9c7821c385fb13338a4c429aecc819e73988
ccconverter: fix framerate passthrough with malformed input

If an input is malformed (only produces cea608 field 1 cc_data) then
when in passthrough we would effectively be dropping every second cea608
on output as we would not store any unused cea608 data.

Fix by having all code paths go through the framerate conversion code
which will store and retrieve any relevant data across buffers.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3211>
subprojects/gst-plugins-bad/ext/closedcaption/gstccconverter.c
subprojects/gst-plugins-bad/tests/check/elements/ccconverter.c