return the correct rocdec_status if DestroyDataBuffers fails (#137)
[ROCm/rocdecode commit: 9a78101d22]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
02e09dba20
işleme
0652ec852c
@@ -233,7 +233,7 @@ rocDecStatus VaapiVideoDecoder::SubmitDecode(RocdecPicParams *pPicParams) {
|
|||||||
rocDecStatus rocdec_status = DestroyDataBuffers();
|
rocDecStatus rocdec_status = DestroyDataBuffers();
|
||||||
if (rocdec_status != ROCDEC_SUCCESS) {
|
if (rocdec_status != ROCDEC_SUCCESS) {
|
||||||
ERR("Error: Failed to destroy VAAPI buffer");
|
ERR("Error: Failed to destroy VAAPI buffer");
|
||||||
return ROCDEC_SUCCESS;
|
return rocdec_status;
|
||||||
}
|
}
|
||||||
CHECK_VAAPI(vaCreateBuffer(va_display_, va_context_id_, VAPictureParameterBufferType, pic_params_size, 1, pic_params_ptr, &pic_params_buf_id_));
|
CHECK_VAAPI(vaCreateBuffer(va_display_, va_context_id_, VAPictureParameterBufferType, pic_params_size, 1, pic_params_ptr, &pic_params_buf_id_));
|
||||||
if (scaling_list_enabled) {
|
if (scaling_list_enabled) {
|
||||||
|
|||||||
Yeni konuda referans
Bir kullanıcı engelle