media/gpu/v4l2vda: Execute NotifyFlushDone for Flush if input stream is off

VDA client can request Flush() after Reset() and waits for NotifyFlushDone().
After FinishReset() is done, input stream becomes off. Even doing V4L2_DEC_CMD_STOP
at this time, the buffer with V4L2_BUF_FLAG_LAST will never be returned from
driver. As a result, NotifyFlushDone() will not be invoked and client waits
To avoid this, V4L2VDA is changed as it tries to call NotifyFlushDone if input
stream is off.

BUG=chromium:833223, chromium:833221
TEST=Change resolution manually on
TEST=VDA unittest on hana
TEST=CtsMediaTestCases on hana

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: I4245bdcee1e537dc7061e7833530ae59fc4aecb7
Commit-Queue: Hirokazu Honda <>
Reviewed-by: Pawel Osciak <>
Cr-Commit-Position: refs/heads/master@{#551252}
1 file changed