Camera: Detach shared buffers if they are still referenced
Dynamic consumers removed by client could still hold one or several buffer references after streaming stops and the producer interface gets disconnected. Returning those buffers in the input queue is not recommended as they can continue to get accessed at the same time as the camera modifies them. To avoid this try to detach all previously registered buffers. If the call fails for some specific buffer, then try to detach it from both the input queue and the remaining outputs. Bug: 70223208 Test: Camera CTS Change-Id: Ie35c7a2360d970ab5c860be7b580140dfb768934
Loading
Please register or sign in to comment