[vlc-commits] qsv: refine logs when MFXInit() fails
Steve Lhomme
git at videolan.org
Tue Apr 24 11:04:13 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Apr 24 11:02:39 2018 +0200| [ab136d9f42df8924b39335467c896279edcbce6c] | committer: Steve Lhomme
qsv: refine logs when MFXInit() fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab136d9f42df8924b39335467c896279edcbce6c
---
modules/codec/qsv.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 0f865dd4ab..17a8a0408f 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -442,7 +442,10 @@ static int Open(vlc_object_t *this)
sts = MFXInit(MFX_IMPL_AUTO_ANY, &ver, &sys->session);
if (sts != MFX_ERR_NONE) {
- msg_Err(enc, "Unable to find an Intel Media SDK implementation.");
+ if (sts == MFX_ERR_UNSUPPORTED)
+ msg_Err(enc, "Intel Media SDK implementation not supported, is your card plugged?");
+ else
+ msg_Err(enc, "Unable to find an Intel Media SDK implementation (%d).", sts);
free(sys);
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list