Discussion:
[vlc-commits] qsv: refine logs when MFXInit() fails
Steve Lhomme
2018-04-24 09:04:13 UTC
Permalink
vlc | branch: master | Steve Lhomme <***@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;
}

Loading...