Add support for rocDecGetErrorName for getting the rocDecStatus error string (#185)

* Add support for rocDecGetErrorName for getting the rocDecStatus error string

* Add description of the API
Cette révision appartient à :
Aryan Salmanpour a créé et GitHub a révisé 2024-01-17 14:00:54 -05:00
1 Parent d42e19cbfd
révision f7997b716d
3 fichiers modifiés
+36 -1

Aucun fichier ne correspond à votre recherche

+1 -1
Voir le fichier
@@ -96,7 +96,7 @@ private:
rocDecStatus error_code = rocDecAPI; \
if( error_code != ROCDEC_SUCCESS) { \
std::ostringstream error_log; \
error_log << #rocDecAPI << " returned err " << error_code << " at " <<__FILE__ <<":" << __LINE__;\
error_log << #rocDecAPI << " returned err " << rocDecGetErrorName(error_code) << " at " <<__FILE__ <<":" << __LINE__;\
ROCDEC_THROW(error_log.str(), error_code); \
} \
} while (0)