From 1d082baf18aed7f65d91f196055638e152de3275 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Tue, 10 Dec 2019 19:47:03 +0800 Subject: [PATCH] msdk: call MFXInitEx instead of MFXInit MFXInitEx has more control than MFXInit. The current setting in this commit is identical to MFXInit Part-of: --- sys/msdk/msdk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/msdk/msdk.c b/sys/msdk/msdk.c index 6e61030..2190e27 100644 --- a/sys/msdk/msdk.c +++ b/sys/msdk/msdk.c @@ -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)); -- 2.7.4