From f7fce4d9b4005d7460da9fa3c9ee339f8daa75d7 Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Wed, 17 Jan 2024 11:06:34 -0500 Subject: [PATCH] Print the vaapi error name string instead of the vaapi status integer for better clarity if a vaapi failure occurs (#182) --- src/rocdecode/vaapi/vaapi_videodecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rocdecode/vaapi/vaapi_videodecoder.h b/src/rocdecode/vaapi/vaapi_videodecoder.h index d17f9f8aa8..15c5ac5f55 100644 --- a/src/rocdecode/vaapi/vaapi_videodecoder.h +++ b/src/rocdecode/vaapi/vaapi_videodecoder.h @@ -37,7 +37,7 @@ THE SOFTWARE. #define CHECK_VAAPI(call) {\ VAStatus va_status = call;\ if (va_status != VA_STATUS_SUCCESS) {\ - std::cout << "VAAPI failure: " << #call << " failed with 'status# " << va_status << "' at " << __FILE__ << ":" << __LINE__ << std::endl;\ + std::cout << "VAAPI failure: " << #call << " failed with 'status: " << vaErrorStr(va_status) << "' at " << __FILE__ << ":" << __LINE__ << std::endl;\ return ROCDEC_RUNTIME_ERROR;\ }\ }