ccconverter: fix framerate caps negotiation from non-cdp to cdp
authorMatthew Waters <matthew@centricular.com>
Fri, 2 Jul 2021 03:10:25 +0000 (13:10 +1000)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 2 Jul 2021 07:22:31 +0000 (10:22 +0300)
commit8fd2c68968ae922bcf52c628575afc212da35d3e
treebe4eda8f9fe5c5beb54400a06ab75ad58083cacf
parent5d96e9e7bd28e3fe1d08e0f013aa778961c30209
ccconverter: fix framerate caps negotiation from non-cdp to cdp

We can only convert from non-cdp to cdp within the confines of valid cdp
framerates.  The existing caps negotiation code was allowing any
framerate to convert to a cdp output which is incorrect and would hit an
assertion later.

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