media/gpu/v4l2vda: fix STREAMON sequence
The codec API specifies that when starting streaming, the OUTPUT queue should start first, followed by the CAPTURE queue. However it can happen in some reset scenarios that CAPTURE buffers are queued ahead of OUTPUT buffers, which results in the CAPTURE queue starting first. Fix this by only allowing the CAPTURE queue to start if the OUTPUT queue is already streaming. BUG=b:111670886 TEST=Checked that VDA unittest was passing on Hana and Cheza. Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: Id27b5202dc6f910880e52099773df26e73a50304 Reviewed-on: https://chromium-review.googlesource.com/1212211 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Pawel Osciak <posciak@chromium.org> Cr-Commit-Position: refs/heads/master@{#589479}
Showing
Please register or sign in to comment