Enhance logging error in rocDecode library - let the upper level class prints the correct error code string instead of integer code from lower levels (#223)

[ROCm/rocdecode commit: 15526253c7]
このコミットが含まれているのは:
Aryan Salmanpour authored and GitHub committed 2024-02-06 13:35:41 -05:00
1 親 c7f7a7c0e8
コミット 881d06a244
4ファイル変更
+37 -37

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -98,7 +98,7 @@ private:
rocDecStatus error_code = rocDecAPI; \
if( error_code != ROCDEC_SUCCESS) { \
std::ostringstream error_log; \
error_log << #rocDecAPI << " returned err " << rocDecGetErrorName(error_code) << " at " <<__FILE__ <<":" << __LINE__;\
error_log << #rocDecAPI << " returned " << rocDecGetErrorName(error_code) << " at " <<__FILE__ <<":" << __LINE__;\
ROCDEC_THROW(error_log.str(), error_code); \
} \
} while (0)