summaryrefslogtreecommitdiff
path: root/sys/msdk
diff options
context:
space:
mode:
authorAaron Boxer <aaron.boxer@collabora.com>2019-11-20 13:19:02 -0600
committerHaihao Xiang <haihao.xiang@intel.com>2019-11-22 05:18:42 +0000
commit348494fd3482fb86c39e8383253abe015d3d070d (patch)
tree38bc35ec69da6c5b301250adce95c6edba608bf6 /sys/msdk
parent2f1256ada787d66b85027d9859bc4239a00a3aab (diff)
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.
Diffstat (limited to 'sys/msdk')
-rw-r--r--sys/msdk/msdk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/msdk/msdk.c b/sys/msdk/msdk.c
index 6f9cd3cf7..ee609942f 100644
--- a/sys/msdk/msdk.c
+++ b/sys/msdk/msdk.c
@@ -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;
}