media/gpu/v4l2svda: stay in awaiting buffers state until first buffer is imported
The current state flow results in the decoder being in decoding state at the moment the first buffer is imported, if import mode is used. This triggers a DCHECK if an image processor is in use. Fix this by delaying the switch to idle state and call to ProcessPendingEventsIfNeeded() to after the first buffer is imported. Bug: b:139901663 Test: video_decode_accelerator_tests passing on Kevin and Kukui. Test: tast video.SeekSwitch* passes on Kevin. Change-Id: I934f144a46d78318bffc039f24051f95fea60f4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837325Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#703571}
Showing
Please register or sign in to comment