v4l2_stateful_decoder: Address queue dependency

It is not a requirement that the OUTPUT queue be serviced
before the CAPTURE queue.  For some h.264 clips requiring
this ordering locks up the decoder waiting for an OUTPUT
queue to be dequed.

This is fixed by changing the logic to check the CAPTURE
queue even if the OUTPUT queue does not have a buffer to

TEST=tast run $DUT video.PlatformDecoding.*

Change-Id: I4085749ed8c1593125c559c44ba60cb176936c79
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/drm-tests/+/3501484
Tested-by: Fritz Koenig <frkoenig@chromium.org>
Auto-Submit: Fritz Koenig <frkoenig@chromium.org>
Reviewed-by: Justin Green <greenjustin@google.com>
Reviewed-by: Miguel Casas-Sanchez <mcasas@chromium.org>
Reviewed-by: Miguel Casas <mcasas@google.com>
Commit-Queue: Fritz Koenig <frkoenig@chromium.org>
1 file changed