mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
msdk: query platform when opening session
This commit is contained in:
parent
0cf67c3be7
commit
2f1256ada7
1 changed files with 11 additions and 2 deletions
|
@ -190,10 +190,19 @@ msdk_open_session (mfxIMPL impl)
|
|||
GST_ERROR ("Query version failed (%s)", msdk_status_to_string (status));
|
||||
goto failed;
|
||||
}
|
||||
#if (MFX_VERSION >= 1019)
|
||||
mfxPlatform platform = { 0 };
|
||||
status = MFXVideoCORE_QueryPlatform (session, &platform);
|
||||
if (MFX_ERR_NONE == status) {
|
||||
GST_INFO ("Detected MFX platform with device code %d", platform.CodeName);
|
||||
} else {
|
||||
GST_WARNING ("Platform auto-detection failed with MFX status %d", status);
|
||||
}
|
||||
#endif
|
||||
|
||||
GST_INFO ("MSDK implementation: 0x%04x (%s)", implementation,
|
||||
GST_INFO ("MFX implementation: 0x%04x (%s)", implementation,
|
||||
implementation_names[MFX_IMPL_BASETYPE (implementation)]);
|
||||
GST_INFO ("MSDK version: %d.%d", version.Major, version.Minor);
|
||||
GST_INFO ("MFX version: %d.%d", version.Major, version.Minor);
|
||||
|
||||
return session;
|
||||
|
||||
|
|
Loading…
Reference in a new issue