commit | 0ebd059771a510273a57e8a28924fdb8e506ca5a | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenw@codeaurora.org> | Fri Apr 18 09:25:16 2014 -0700 |
committer | Vineeta Srivastava <vsrivastava@google.com> | Mon Apr 21 16:17:47 2014 -0700 |
tree | a93dee82f2053ecbfcf91e6dac41c220e6c356e4 | |
parent | 1effb4f1b43967d7a2ed307e8a18fba4014e6c42 [diff] |
Camera3: stop_channel should be after stop_stream There is a race condition if stop_stream happens after stop_channel. stop_channel de-allocates all stream buffers. If at the same time, there is a buffer callback ongoing for one of the streams, the callback may acccess an already freed buffer. Bug: 14142593 Bug: 14028116 Change-Id: I9e9342a02c979ca8854beb16570847e51e9d7645