msdk: call MFXInitEx instead of MFXInit

MFXInitEx has more control than MFXInit. The current setting in this
commit is identical to MFXInit

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/910>
This commit is contained in:
Haihao Xiang 2019-12-10 19:47:03 +08:00 committed by GStreamer Merge Bot
parent 467618f8ac
commit 1d082baf18

View file

@ -189,6 +189,7 @@ msdk_open_session (mfxIMPL impl)
mfxSession session = NULL;
mfxVersion version = { {1, 1}
};
mfxInitParam init_par = { impl, version };
mfxIMPL implementation;
mfxStatus status;
mfxU16 codename;
@ -198,7 +199,7 @@ msdk_open_session (mfxIMPL impl)
"HARDWARE3", "HARDWARE4", "RUNTIME"
};
status = MFXInit (impl, &version, &session);
status = MFXInitEx (init_par, &session);
if (status != MFX_ERR_NONE) {
GST_ERROR ("Intel Media SDK not available (%s)",
msdk_status_to_string (status));