Loading media/libstagefright/CameraSource.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -564,9 +564,11 @@ status_t CameraSource::initWithCameraAccess( // Set the preview display. Skip this if mSurface is null because // applications may already set a surface to the camera. if (mSurface != NULL) { // This CHECK is good, since we just passed the lock/unlock // check earlier by calling mCamera->setParameters(). CHECK_EQ((status_t)OK, mCamera->setPreviewTarget(mSurface)); // Surface may be set incorrectly or could already be used even if we just // passed the lock/unlock check earlier by calling mCamera->setParameters(). if ((err = mCamera->setPreviewTarget(mSurface)) != OK) { return err; } } // Use buffer queue to receive video buffers from camera Loading Loading
media/libstagefright/CameraSource.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -564,9 +564,11 @@ status_t CameraSource::initWithCameraAccess( // Set the preview display. Skip this if mSurface is null because // applications may already set a surface to the camera. if (mSurface != NULL) { // This CHECK is good, since we just passed the lock/unlock // check earlier by calling mCamera->setParameters(). CHECK_EQ((status_t)OK, mCamera->setPreviewTarget(mSurface)); // Surface may be set incorrectly or could already be used even if we just // passed the lock/unlock check earlier by calling mCamera->setParameters(). if ((err = mCamera->setPreviewTarget(mSurface)) != OK) { return err; } } // Use buffer queue to receive video buffers from camera Loading