Camera: Fix deadlock due to mLock in pcb and takepicture.
In non-zsl case of takepicture, we do streamoff for preview stream which is waiting on preview callback thread to exit. By that time the lock has already been acquired by takePicture. So preivew callback will not exit until it acquires lock and takePicture cannot continue until PCB call back is returned. Fix: Avoid the mLock at services when both Preview cb & Compressed cb are enabled. (cherrypicked from commit bd423581f4b7eb8481f5525fc51174ce4c7261bc Change-Id: If8b2d7465b279386f06eeeb4fee51cf73ca5ee41
Loading
Please register or sign in to comment