diff options
author | James Dong <jdong@google.com> | 2010-04-26 17:48:26 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-04-28 11:55:47 -0700 |
commit | f06bb989d6596e013968c499a4f9387bc663ce40 (patch) | |
tree | d2c373cf5af743810228834e5755d0a33aac81cf /camera | |
parent | c4e2c6ecdbcad900db455af827a0781bf02d96e1 (diff) | |
download | frameworks_native-f06bb989d6596e013968c499a4f9387bc663ce40.zip frameworks_native-f06bb989d6596e013968c499a4f9387bc663ce40.tar.gz frameworks_native-f06bb989d6596e013968c499a4f9387bc663ce40.tar.bz2 |
Use timestamp from camera driver for CameraSource
Change-Id: I09ddec69997c43b8f17fdd21304c76cb4c5ab8cf
Diffstat (limited to 'camera')
-rw-r--r-- | camera/libcameraservice/CameraService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index 00bd54e..53c77da 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -16,6 +16,7 @@ ** limitations under the License. */ +//#define LOG_NDEBUG 0 #define LOG_TAG "CameraService" #include <utils/Log.h> @@ -247,7 +248,7 @@ CameraService::Client::Client(const sp<CameraService>& cameraService, status_t CameraService::Client::checkPid() { int callingPid = getCallingPid(); - if (mClientPid == callingPid) return NO_ERROR; + if (mClientPid == callingPid || callingPid == getpid()) return NO_ERROR; LOGW("Attempt to use locked camera (client %p) from different process " " (old pid %d, new pid %d)", getCameraClient()->asBinder().get(), mClientPid, callingPid); |