mediafoundation: Fix for UWP build
authorSeungha Yang <seungha@centricular.com>
Wed, 20 Oct 2021 16:47:07 +0000 (01:47 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 21 Oct 2021 05:11:40 +0000 (05:11 +0000)
commit8b6c3e030b6089c590bd457e9f784a3a46ce663d
tree53fa6062e54a43e86dad1cbb56c2fdcfa7978b06
parentba34f6a113f120a3f7ebc249c0f03d9251a5683a
mediafoundation: Fix for UWP build

We don't support D3D11 interop for UWP because some APIs
(specifically MFTEnum2) are desktop application only.
However, the code for symbol loading is commonly used by both UWP and WIN32.
Just link GModule unconditionally which is UWP compatible, and simply don't
try to load any library/symbol dynamically when D3D11 interop is unavailable.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1216>
subprojects/gst-plugins-bad/sys/mediafoundation/gstmfplatloader.c
subprojects/gst-plugins-bad/sys/mediafoundation/meson.build