Android: fix QMediaRecorder failing to start in some cases.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 13 Mar 2014 15:35:01 +0000 (16:35 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Mar 2014 13:46:53 +0000 (14:46 +0100)
commitc24c3b171f61a673d4905aba4bc94c04a22adea3
tree67df5847f5b41adea07c1c83350cfcf21349ffd4
parentd204391cc1cf75601a8fb4a5037060508af40585
Android: fix QMediaRecorder failing to start in some cases.

Because camera operations are performed in a dedicated thread, starting
a recorder was sometimes failing because the camera was not yet ready
(unlocking it was not done yet). Camera locking and unlocking are now
synchronous operations.

Change-Id: I92c3c2f3666b63e7451e4ee1ab89dcbc85ae6c24
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/src/wrappers/jcamera.cpp