mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
467618f8ac
commit
1d082baf18
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue