summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDániel Járai <jaraidaniel@gmail.com>2015-04-01 20:49:18 +0200
committerDániel Járai <jaraidaniel@gmail.com>2015-04-01 20:49:18 +0200
commitafb64fc51d323506f686330d2b1c5474589b6ee3 (patch)
treec4e019632c40512befc1df2b080a6a88b06111c7
parent209e1769d65de3fc0ddc374b2e6733e448f276b3 (diff)
downloadhardware_ti_omap4-afb64fc51d323506f686330d2b1c5474589b6ee3.zip
hardware_ti_omap4-afb64fc51d323506f686330d2b1c5474589b6ee3.tar.gz
hardware_ti_omap4-afb64fc51d323506f686330d2b1c5474589b6ee3.tar.bz2
camera: fix build when TI_CAMERAHAL_DONT_USE_RAW_IMAGE_SAVING is set
Change-Id: I5d055f7da992c9c0fd71823c6ca0f18c95fc3be8
-rwxr-xr-xcamera/OMXCameraAdapter/OMXCameraAdapter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
index 9727f80..a52654a 100755
--- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
+++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
@@ -423,11 +423,15 @@ OMXCameraAdapter::OMXCameraPortParameters *OMXCameraAdapter::getPortParams(Camer
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex];
break;
case CameraFrame::RAW_FRAME:
+#ifdef CAMERAHAL_USE_RAW_IMAGE_SAVING
if (mRawCapture) {
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mVideoPortIndex];
} else {
+#endif
ret = &mCameraAdapterParameters.mCameraPortParams[mCameraAdapterParameters.mImagePortIndex];
+#ifdef CAMERAHAL_USE_RAW_IMAGE_SAVING
}
+#endif
break;
case CameraFrame::PREVIEW_FRAME_SYNC:
case CameraFrame::SNAPSHOT_FRAME: