Commit 3527d48
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
permanently.
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 crosvideo.appspot.com
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
Reviewed-on: https://chromium-review.googlesource.com/1013802
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Cr-Commit-Position: refs/branch-heads/3396@{#67}
Cr-Branched-From: 9ef2aa8-refs/heads/master@{#550428}1 parent 5f50097 commit 3527d48
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | | - | |
| 1278 | + | |
| 1279 | + | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
1283 | 1285 | | |
1284 | 1286 | | |
1285 | 1287 | | |
| |||
0 commit comments