msdk: call MFXInitEx instead of MFXInit
authorHaihao Xiang <haihao.xiang@intel.com>
Tue, 10 Dec 2019 11:47:03 +0000 (19:47 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 20 Sep 2020 01:40:08 +0000 (01:40 +0000)
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>

sys/msdk/msdk.c

index 6e61030..2190e27 100644 (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));