summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
Diffstat (limited to 'camera')
-rw-r--r--camera/exynos_camera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/exynos_camera.c b/camera/exynos_camera.c
index f0cb0c3..9657eea 100644
--- a/camera/exynos_camera.c
+++ b/camera/exynos_camera.c
@@ -2636,6 +2636,8 @@ void *exynos_camera_preview_thread(void *data)
}
if (exynos_camera->preview_listener->busy) {
+ // Prevent preview restart race conditions
+ usleep((useconds_t)25 * 1000);
rc = exynos_camera_preview(exynos_camera);
if (rc < 0) {
ALOGE("%s: Unable to preview", __func__);