From 40fdd97e7bc12dfeb0e68f3bacea7d744ff8d3aa Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 24 Sep 2018 22:01:57 +0100 Subject: [PATCH] VCE: Add temp logging to vce_common.c to give a hint as to why some users can't use VCE. --- libhb/vce_common.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.40.0