use the error code of VA_STATUS_ERROR_TIMEDOUT to avoid build failure with older va headers (#211)
[ROCm/rocdecode commit: e90a93eb4a]
이 커밋은 다음에 포함됨:
1 부모
d15be3fff3
커밋
119ee113c3
1 파일이 변경됨
+1
-1
@@ -336,7 +336,7 @@ rocDecStatus VaapiVideoDecoder::ExportSurface(int pic_idx, VADRMPRIMESurfaceDesc
|
||||
* various reasons, we treat it as non-fatal and contiue waiting.
|
||||
*/
|
||||
if (va_status != VA_STATUS_SUCCESS) {
|
||||
if (va_status == VA_STATUS_ERROR_TIMEDOUT) {
|
||||
if (va_status == 0x26 /*VA_STATUS_ERROR_TIMEDOUT*/) {
|
||||
CHECK_VAAPI(vaQuerySurfaceStatus(va_display_, va_surface_ids_[pic_idx], &surface_status));
|
||||
} else {
|
||||
std::cout << "VAAPI failure: vaSyncSurface() failed with error code: " << va_status << "', status: " << vaErrorStr(va_status) << "' at " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
||||
새 이슈에서 참조
사용자 차단