commit | fb746df0842205f96122d37ddd6e07d2e8872f28 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Thu Sep 06 11:01:22 2018 -0700 |
committer | Rohit Yengisetty <rngy@google.com> | Tue Oct 16 17:30:19 2018 -0700 |
tree | 2f6d5fb9c4df282836e920bbbd2b6364370e9561 | |
parent | fbe1dfc9ade0622cb375bb55a768cbc63c65cb6f [diff] |
Don't continue with an invalid iterator Bug: 112181526 Test: build Change-Id: Ifa3bfa60d2303a294ee842de6729a0c911b42f88 (cherry picked from commit cf6899a77b583d37597c07e6a542422cb9821964)
diff --git a/vda/v4l2_slice_video_decode_accelerator.cc b/vda/v4l2_slice_video_decode_accelerator.cc index 5da373a..e7b6444 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();