videoconvert: fix passthrough on equivalent transfer
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 23 Aug 2022 14:02:31 +0000 (16:02 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Tue, 23 Aug 2022 14:02:31 +0000 (16:02 +0200)
commit31c1e586c3cb638f2c93c30f150c8263711b02b9
treee6a33be0eb9da475be9f47f66611e52b88570c6b
parentffebd52e468bcf6e2a8043e6f2e24c07472d9b7c
videoconvert: fix passthrough on equivalent transfer

When the input info and output info are equal, except for the
transfer functions that are *not* equivalent, we need to set up
a converter as we won't be passthrough.

Fixes an assertion in that case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2929>
subprojects/gst-plugins-base/gst/videoconvertscale/gstvideoconvertscale.c