mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
msdk: query hardware when checking MFX availability
msdk plugin is not used for sofware encode/decode as there are better solutions available. Also, with MFX_IMPL_AUTO_ANY, if software decode is not supported, the plugin will still load, but will then fail when trying to run the (autoplugged) pipeline. With MFX_IMPL_HARDWARE_ANY, the plugin fails and a better software decoder is auto-plugged.
This commit is contained in:
parent
2f1256ada7
commit
348494fd34
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ failed:
|
|||
gboolean
|
||||
msdk_is_available (void)
|
||||
{
|
||||
mfxSession session = msdk_open_session (MFX_IMPL_AUTO_ANY);
|
||||
mfxSession session = msdk_open_session (MFX_IMPL_HARDWARE_ANY);
|
||||
if (!session) {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue