commit | 3f1123abc6f95263f2b7e43d62974d7d409f28d4 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Thu Jun 17 12:04:36 2021 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Mon Jun 28 12:23:30 2021 +0000 |
tree | 2747a7d03940038c905134e28d90cb186eac5460 | |
parent | 3e0fd6db55a446aaef9a28c87922c0bb23c80c95 [diff] |
Clear buffer references when a video stream stops When CarEvsCameraPreviewActivity requests to stop a video stream currently in use, it may hold references of delivered frame buffers that are already invalidated by EvsManager. These invalid buffer references could break a frame buffer circulation if CarEvsCameraPreviewActivity is resumed. This CL addresses this issue by dropping all buffer references when handleVideoStreamLocked() decides to stop a current video stream. Bug: 187407895 Bug: 188076578 Test: Launches the preview activity and turns on and off the display by injecting power keyevent (26). Change-Id: I41edb718fe11933730f484605b8ad15cfce0a9dc
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.