vtenc: Disable ARGB/RGBA64 caps on M1 Pro/Max with macOS <13
authorPiotr Brzeziński <piotr@centricular.com>
Tue, 7 Feb 2023 15:04:22 +0000 (16:04 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 15 Feb 2023 01:15:01 +0000 (01:15 +0000)
commit62e385ad35b875ff25a7f1c8fc47bbf2231e33b1
treec7ce8a36be0190e5081ef0ebf89c477936679ef1
parentb2bdadd05b43ed4ad41627a4231617c4d19c4339
vtenc: Disable ARGB/RGBA64 caps on M1 Pro/Max with macOS <13

Fixes #1358.
Passing ARGB64/RGBA64 to vtenc caused the encoding to fail
when running on M1 Pro/Max variants with macOS 12.x, so let's
remove these formats from caps when such scenario is detected.
This issue appears to have been fixed OS-side in macOS 13.0.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3962>
subprojects/gst-plugins-bad/sys/applemedia/vtenc.c