commit | 835d46e9cc6626a6c8ee4cfc9c0a209a4cc78b82 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Wed May 05 23:28:10 2021 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Tue May 11 14:28:36 2021 -0700 |
tree | 59414077ed2b5b60ea9e6a1470d98f9bae8eab15 | |
parent | b683aaad8e9cf7f8a733c6df5706667aa5656f10 [diff] |
Fix a procedure to stop a video stream To group frame buffers from participating physical camera devices together, EVS manager implements a synchronization logic in VirtualCamera with the timer, which expires if no new frame arrives from camera devices within 5 seconds. This was introduced to detect hanging camera devices and, however, makes EVS manager stands still when it handles a request to stop an active video stream. This CL corrects this erroneous behavior by clearing pending capture requests properly and signalling the condition to unblock a capture thread. Fix: 187371938 Test: Start and stop CarEvsCameraPreviewApp with below commands and EVS manager stops a video stream immediately. > adb shell cmd car_service inject-vhal-event 0x11410f10 0,1 > adb shell cmd car_service inject-vhal-event 0x11410f10 0,0 Change-Id: I14adb22779302dee81f1c324eb1fc6a13e795683 Merged-In: I14adb22779302dee81f1c324eb1fc6a13e795683 (cherry picked from commit e6ed860cda7033243046e9a303a41ab9947e4974)
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.