Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M-110] media/gpu/v4l2VEA: Set state to kInitialized in early Initial…
…izeTask() V4L2VEA calls NotifyError() in SetErrorState() if the current state is neither kError nor kUninitialized. The latter is because NotifyError() must not be called in Initialize(). InitializeTask() is executed after Initialize() returns. It must call NotifyError() if the initialization done in InitializeTask() fails. However, the state was set to kInitialized from kUninitialized in the later InitializeTask(), so SetErrorState() in early InitializeTask() doesn't call NotifyError(). This causes the stuck of encoding. This CL fixes the bug by setting the state to kInitialized in the beginning of InitializeTask(). (cherry picked from commit 2eabc1d) Bug: b:266643681 Bug: b:267501137 Test: Google Meet 49p call on trogdor Test: video_encode_accelerator_tests on trogdor Change-Id: I0fc9395e59c0fbebc2d5d7e1cd5fc72f61933cbf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4190431 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Steve Cho <stevecho@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1097186} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4216732 Reviewed-by: Fritz Koenig <frkoenig@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#895} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information