video-converter: Set up gamma tables only once
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 6 May 2021 17:01:41 +0000 (19:01 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 25 Jun 2021 13:55:39 +0000 (13:55 +0000)
commitef324fa068699291866d29eea3e84492642b9bf9
treeb2ea8df893506b99dc0b1286a7c0d9dedacb8128
parentb835356d6c8e8874c0faa67119880002d2bb1f64
video-converter: Set up gamma tables only once

When the video converter is using multiple threads, the gamma tables
were created multiple times, leaking the tables set up for the previous
thread.

Only calculate the tables once.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1140>
gst-libs/gst/video/video-converter.c