Print the vaapi error name string instead of the vaapi status integer for better clarity if a vaapi failure occurs (#182)
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
GitHub
γονέας
1a77f3d1b0
υποβολή
f7fce4d9b4
@@ -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;\
|
||||
}\
|
||||
}
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user