diff options
author | sr55 <[email protected]> | 2018-09-24 22:01:57 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-09-24 22:01:57 +0100 |
commit | 40fdd97e7bc12dfeb0e68f3bacea7d744ff8d3aa (patch) | |
tree | 35e6d104de1187c61f1131ac6276e0943038baf5 /libhb/vce_common.c | |
parent | b115733f3a3e898fb53690f8562872bc0e1fe9f5 (diff) |
VCE: Add temp logging to vce_common.c to give a hint as to why some users can't use VCE.
Diffstat (limited to 'libhb/vce_common.c')
-rw-r--r-- | libhb/vce_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/vce_common.c b/libhb/vce_common.c index 9965df339..551596e2c 100644 --- a/libhb/vce_common.c +++ b/libhb/vce_common.c @@ -26,6 +26,7 @@ AMF_RESULT check_component_available(const wchar_t *componentID) if(!library) { result = AMF_FAIL; + hb_log("VCE: VCE Library not found."); goto clean; } @@ -33,18 +34,21 @@ AMF_RESULT check_component_available(const wchar_t *componentID) if(!init_fun) { result = AMF_FAIL; + hb_log("VCE: Load Library Failed"); goto clean; } result = init_fun(AMF_FULL_VERSION, &factory); if(result != AMF_OK) { + hb_log("VCE: Init Failed"); goto clean; } result = factory->pVtbl->CreateContext(factory, &context); if(result != AMF_OK) { + hb_log("VCE: Context Failed"); goto clean; } @@ -52,6 +56,7 @@ AMF_RESULT check_component_available(const wchar_t *componentID) if (result != AMF_OK) { result = context->pVtbl->InitDX9(context, NULL); if (result != AMF_OK) { + hb_log("VCE: DX11 and DX9 Failed"); goto clean; } } @@ -59,6 +64,7 @@ AMF_RESULT check_component_available(const wchar_t *componentID) result = factory->pVtbl->CreateComponent(factory, context, componentID, &encoder); if(result != AMF_OK) { + hb_log("VCE: Encoder not available"); goto clean; } |