Skip to content

Commit

Permalink
media_libva_decoder: don't return early
Browse files Browse the repository at this point in the history
It is possible a BO in the completed report list has been destroyed from
user app.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
  • Loading branch information
xhaihao committed Jan 25, 2024
1 parent fa6f2b9 commit e6b1c42
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions media_driver/linux/common/codec/ddi/media_libva_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,6 @@ VAStatus DdiDecode_StatusReport(PDDI_MEDIA_CONTEXT mediaCtx, CodechalDecode *dec
break;
}
}

if (j == mediaCtx->pSurfaceHeap->uiAllocatedHeapElements)
{
return VA_STATUS_ERROR_OPERATION_FAILED;
}
}
else
{
Expand Down Expand Up @@ -507,11 +502,6 @@ VAStatus DdiDecode_StatusReport(PDDI_MEDIA_CONTEXT mediaCtx, DecodePipelineAdapt
break;
}
}

if (j == mediaCtx->pSurfaceHeap->uiAllocatedHeapElements)
{
return VA_STATUS_ERROR_OPERATION_FAILED;
}
}
else
{
Expand Down

0 comments on commit e6b1c42

Please sign in to comment.