diff options
author | Igor Murashkin <iam@google.com> | 2014-06-20 11:28:28 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2014-06-20 13:07:19 -0700 |
commit | 9052efa196edb187d2abb24db8a4ccabac39438b (patch) | |
tree | d5073e30d908c395b21c5ee62c4bcebf3f8d5825 /camera/QualcommCamera2.cpp | |
parent | 3372f0b9d87713fa9e6fb6a34dca02d7307b8229 (diff) | |
download | mako-9052efa196edb187d2abb24db8a4ccabac39438b.tar.gz |
camera: Return -EUSERS when too many cameras are open already
Change-Id: I08d9d1e30e72025c41bd54b702d7ae95b32257be
Diffstat (limited to 'camera/QualcommCamera2.cpp')
-rwxr-xr-x | camera/QualcommCamera2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camera/QualcommCamera2.cpp b/camera/QualcommCamera2.cpp index 138dc27..79c2104 100755 --- a/camera/QualcommCamera2.cpp +++ b/camera/QualcommCamera2.cpp @@ -188,11 +188,11 @@ extern "C" int camera_device_open( pthread_mutex_lock(&camera_session_lock); - //Return INVALID_OPERATION(-1) to framework if multiple camera instances detected. + //Return -EUSERS to framework if multiple camera instances detected. if(QCameraSession) { - ALOGE("%s Mutliple camera open instances are not supported",__func__); + ALOGE("%s Multiple camera open instances are not supported",__func__); pthread_mutex_unlock(&camera_session_lock); - return rc; + return -EUSERS; } if(module && id && hw_device) { int cameraId = atoi(id); |