msdk: Fix for MFXUnload symbol re-definition build error
authorSeungha Yang <seungha@centricular.com>
Mon, 7 Feb 2022 19:51:24 +0000 (04:51 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 8 Feb 2022 10:05:35 +0000 (10:05 +0000)
Fix for libgstreamer-full build

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1408>

subprojects/gst-plugins-bad/sys/msdk/msdk.c
subprojects/gst-plugins-bad/sys/msdk/msdk.h

index b46786b..fc5462f 100644 (file)
@@ -312,7 +312,7 @@ msdk_init_msdk_session (mfxIMPL impl, mfxVersion * pver,
 }
 
 void
-MFXUnload (mfxLoader loader)
+GstMFXUnload (mfxLoader loader)
 {
   g_assert (loader == NULL);
 }
index 6db013d..10e44b4 100644 (file)
@@ -86,7 +86,12 @@ G_BEGIN_DECLS
 #if (MFX_VERSION < 2000)
 typedef void * mfxLoader;
 
-void MFXUnload (mfxLoader loader);
+void GstMFXUnload (mfxLoader loader);
+
+/* To avoid MFXUnload symbol re-define build issue in case of static build.
+ * MFXUnload symbol may exists if other plugin built its own libmfx dispatcher
+ */
+#define MFXUnload GstMFXUnload
 #endif
 
 typedef struct _MsdkSession MsdkSession;