Commit 993541af authored by Pin-chih Lin's avatar Pin-chih Lin Committed by Commit Bot

V4L2SVDA: Don't continue with an invalid iterator

BUG=b:112181526
BUG=881669
TEST=build

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: Ife2de572cad1a47c0e98a6b9f792cfd962af96f0
Reviewed-on: https://chromium-review.googlesource.com/1212204
Commit-Queue: Pin-chih Lin <johnylin@chromium.org>
Reviewed-by: default avatarPawel Osciak <posciak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589426}
parent e808b4f7
...@@ -1017,6 +1017,7 @@ void V4L2SliceVideoDecodeAccelerator::Dequeue() { ...@@ -1017,6 +1017,7 @@ void V4L2SliceVideoDecodeAccelerator::Dequeue() {
if (it == surfaces_at_device_.end()) { if (it == surfaces_at_device_.end()) {
VLOGF(1) << "Got invalid surface from device."; VLOGF(1) << "Got invalid surface from device.";
NOTIFY_ERROR(PLATFORM_FAILURE); NOTIFY_ERROR(PLATFORM_FAILURE);
return;
} }
it->second->SetDecoded(); it->second->SetDecoded();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment