Commit 4174b870 authored by Zhaoliang Ma's avatar Zhaoliang Ma Committed by Commit Bot

media/gpu/vaapi/vaapi_ip_backend: if failed to blitsurface, then return

if blitsurface failed, then return directly.

Bug: 1031436
Change-Id: Ie351d8a22d94f1b3116b2470432db9264db6c57a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1988024Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728453}
parent 157403a9
......@@ -181,7 +181,7 @@ void VaapiImageProcessorBackend::Process(scoped_refptr<VideoFrame> input_frame,
return;
}
// VA-API performs pixel format conversion and scaling without any filters.
if (vaapi_wrapper_->BlitSurface(*src_va_surface, *dst_va_surface,
if (!vaapi_wrapper_->BlitSurface(*src_va_surface, *dst_va_surface,
input_frame->visible_rect(),
output_frame->visible_rect())) {
// Failed to execute BlitSurface(). Since VaapiWrapper has invoked
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment