video-converter: Set up matrix tables only once.
authorJan Schmidt <jan@centricular.com>
Fri, 25 Jun 2021 13:42:34 +0000 (23:42 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 26 Jun 2021 04:00:08 +0000 (04:00 +0000)
commit8c04f4bdae1c9d7cdeaf17b2ac07f4148eb528dd
treed7eff7a55f36f1ebb7c026b84e379da1cee7af84
parentef324fa068699291866d29eea3e84492642b9bf9
video-converter: Set up matrix tables only once.

When configuring a multi-thread converter, only allocate the
shared colour conversion matrices once for the first thread,
to avoid allocating multiple times and leaking memory.

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