diff options
author | Marco Nelissen <marcone@google.com> | 2014-11-14 07:58:25 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2014-11-14 14:01:03 -0800 |
commit | 06b46062d2f8bc82ca3061a23d197734ae51918b (patch) | |
tree | 3aee1330c3d65579643e50d105da35919ddc295f /media/libstagefright/CameraSource.cpp | |
parent | e5a9eb684921b75919b1a7fee97259b0ca48bd47 (diff) | |
download | frameworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.zip frameworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.tar.gz frameworks_av-06b46062d2f8bc82ca3061a23d197734ae51918b.tar.bz2 |
Update calls to IInterface::asBinder()
to use the new static version.
Change-Id: I89a5988a0ac694ffc04d88cf939e8455bf925d4c
Diffstat (limited to 'media/libstagefright/CameraSource.cpp')
-rw-r--r-- | media/libstagefright/CameraSource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/CameraSource.cpp b/media/libstagefright/CameraSource.cpp index c3a940a..ad12bdd 100644 --- a/media/libstagefright/CameraSource.cpp +++ b/media/libstagefright/CameraSource.cpp @@ -219,7 +219,7 @@ status_t CameraSource::isCameraAvailable( mCameraFlags |= FLAGS_HOT_CAMERA; mDeathNotifier = new DeathNotifier(); // isBinderAlive needs linkToDeath to work. - mCameraRecordingProxy->asBinder()->linkToDeath(mDeathNotifier); + IInterface::asBinder(mCameraRecordingProxy)->linkToDeath(mDeathNotifier); } mCamera->lock(); @@ -702,7 +702,7 @@ void CameraSource::releaseCamera() { { Mutex::Autolock autoLock(mLock); if (mCameraRecordingProxy != 0) { - mCameraRecordingProxy->asBinder()->unlinkToDeath(mDeathNotifier); + IInterface::asBinder(mCameraRecordingProxy)->unlinkToDeath(mDeathNotifier); mCameraRecordingProxy.clear(); } mCameraFlags = 0; @@ -825,7 +825,7 @@ status_t CameraSource::read( mFrameAvailableCondition.waitRelative(mLock, mTimeBetweenFrameCaptureUs * 1000LL + CAMERA_SOURCE_TIMEOUT_NS)) { if (mCameraRecordingProxy != 0 && - !mCameraRecordingProxy->asBinder()->isBinderAlive()) { + !IInterface::asBinder(mCameraRecordingProxy)->isBinderAlive()) { ALOGW("camera recording proxy is gone"); return ERROR_END_OF_STREAM; } |