return the correct rocdec_status if DestroyDataBuffers fails (#137)

[ROCm/rocdecode commit: 9a78101d22]
This commit is contained in:
Aryan Salmanpour
2023-12-13 10:57:14 -05:00
committed by GitHub
parent 02e09dba20
commit 0652ec852c
@@ -233,7 +233,7 @@ rocDecStatus VaapiVideoDecoder::SubmitDecode(RocdecPicParams *pPicParams) {
rocDecStatus rocdec_status = DestroyDataBuffers();
if (rocdec_status != ROCDEC_SUCCESS) {
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_));
if (scaling_list_enabled) {