aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2018-09-06 11:01:22 -0700
committerRohit Yengisetty <rngy@google.com>2018-10-16 17:30:19 -0700
commitfb746df0842205f96122d37ddd6e07d2e8872f28 (patch)
tree2f6d5fb9c4df282836e920bbbd2b6364370e9561
parentfbe1dfc9ade0622cb375bb55a768cbc63c65cb6f (diff)
downloadv4l2_codec2-fb746df0842205f96122d37ddd6e07d2e8872f28.tar.gz
Bug: 112181526 Test: build Change-Id: Ifa3bfa60d2303a294ee842de6729a0c911b42f88 (cherry picked from commit cf6899a77b583d37597c07e6a542422cb9821964)
-rw-r--r--vda/v4l2_slice_video_decode_accelerator.cc1
1 files changed, 1 insertions, 0 deletions
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 @@ void V4L2SliceVideoDecodeAccelerator::Dequeue() {
if (it == surfaces_at_device_.end()) {
VLOGF(1) << "Got invalid surface from device.";
NOTIFY_ERROR(PLATFORM_FAILURE);
+ return;
}
it->second->SetDecoded();