media/gpu/v4l2svda: fix crash when using --disable_rendering
CL 6ddfe0d8 (media/gpu/v4l2svda: use queue of GL fences) added a queue of buffers waiting for a fence, but added a NULL fence if rendering was disabled. This NULL fence was then dereferenced by CheckGLFences(), causing a crash. Fix this by only adding the fence if it actually exists. Bug: b:132589320 Test: vdaunittest passing on Kevin and Kukui with and without --disable_rendering. Change-Id: Ib63dd04be4aca8a65f8906875b0b12d50032225f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750469 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#686319}
Showing
Please register or sign in to comment