commit | 4198f66692a6a683c817335506d32b14ccb10f87 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Thu Sep 06 11:01:22 2018 -0700 |
committer | Pin-chih Lin <johnylin@google.com> | Fri Sep 07 02:16:18 2018 +0000 |
tree | 3ad34f3a468cba0b1cb13c1ea0ae37854bd3429a | |
parent | 81a44bb841e726a684b7e0d251f716c3f8cc5a16 [diff] |
Don't continue with an invalid iterator Bug: 112181526 Test: build Change-Id: Ifa3bfa60d2303a294ee842de6729a0c911b42f88
diff --git a/vda/v4l2_slice_video_decode_accelerator.cc b/vda/v4l2_slice_video_decode_accelerator.cc index 0ae7a56..4e82dbd 100644 --- a/vda/v4l2_slice_video_decode_accelerator.cc +++ b/vda/v4l2_slice_video_decode_accelerator.cc
@@ -998,6 +998,7 @@ if (it == surfaces_at_device_.end()) { VLOGF(1) << "Got invalid surface from device."; NOTIFY_ERROR(PLATFORM_FAILURE); + return; } it->second->SetDecoded();