msdk: Fix for MFXUnload symbol re-definition build error

Fix for libgstreamer-full build

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1408>
This commit is contained in:
Seungha Yang 2022-02-08 04:51:24 +09:00 committed by GStreamer Marge Bot
parent 278908ce96
commit 8773ba1104
2 changed files with 7 additions and 2 deletions

View file

@ -312,7 +312,7 @@ msdk_init_msdk_session (mfxIMPL impl, mfxVersion * pver,
}
void
MFXUnload (mfxLoader loader)
GstMFXUnload (mfxLoader loader)
{
g_assert (loader == NULL);
}

View 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;