Fix 1956740: startPreview failed
authorChih-Chung Chang <chihchung@google.com>
Mon, 13 Jul 2009 11:29:25 +0000 (19:29 +0800)
committerChih-Chung Chang <chihchung@google.com>
Mon, 13 Jul 2009 11:50:11 +0000 (19:50 +0800)
commitdb09771cf93d6a82cadca93da4f86d26bd4163c0
treef6207c7b056c300104ee33e43314106360f3ef1a
parentbe125559561e66c1ed080dc6aca8fd9fd642b030
Fix 1956740: startPreview failed

The problem is even after release() is done, the singleton
variable is not cleared, so a new openCameraHardware()
call could return an instance which is already released.

The singleton variable is cleared in the destructor, so
we wait until that happens in openCameraHardware().
libcamera2/QualcommCameraHardware.cpp