commit | abd6aa491be3c053b3710e13f9e9251d73d69423 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Wed Sep 30 22:05:19 2020 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Oct 13 01:08:28 2020 +0000 |
tree | 46e03532095ae4376a81069ebb00c75db822d056 | |
parent | b0cc85c7b0d5ac114e4c7ba3fcd8929356c5e95c [diff] |
Correct the camera stream behavior When VirtualCamera receives a stream stopped event from HalCamera unexpectedly, this change makes it to call stopVideoStream() and ensures the resources are clean up properly. Also, HalCamera is modified not to accept a new frame request when the video stream is not running. Fix: 169364969 Test: Run evs_virtualcamera_fuzzer Change-Id: I3c8b714e38e136d59bf3fd4e7df6efe70438f243 Merged-In: I3c8b714e38e136d59bf3fd4e7df6efe70438f243 (cherry picked from commit ba634b0b87315609131e42e0ca7c82308c836c18) (cherry picked from commit 16b0f2a24a58862da58420f6de2d03c146357ac9)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.