mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +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;
|
mfxSession session = NULL;
|
||||||
mfxVersion version = { {1, 1}
|
mfxVersion version = { {1, 1}
|
||||||
};
|
};
|
||||||
|
mfxInitParam init_par = { impl, version };
|
||||||
mfxIMPL implementation;
|
mfxIMPL implementation;
|
||||||
mfxStatus status;
|
mfxStatus status;
|
||||||
mfxU16 codename;
|
mfxU16 codename;
|
||||||
|
@ -198,7 +199,7 @@ msdk_open_session (mfxIMPL impl)
|
||||||
"HARDWARE3", "HARDWARE4", "RUNTIME"
|
"HARDWARE3", "HARDWARE4", "RUNTIME"
|
||||||
};
|
};
|
||||||
|
|
||||||
status = MFXInit (impl, &version, &session);
|
status = MFXInitEx (init_par, &session);
|
||||||
if (status != MFX_ERR_NONE) {
|
if (status != MFX_ERR_NONE) {
|
||||||
GST_ERROR ("Intel Media SDK not available (%s)",
|
GST_ERROR ("Intel Media SDK not available (%s)",
|
||||||
msdk_status_to_string (status));
|
msdk_status_to_string (status));
|
||||||
|
|
Loading…
Reference in a new issue