summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp
index ad6d1cc..5e8d435 100644
--- a/media/libmediaplayerservice/StagefrightRecorder.cpp
+++ b/media/libmediaplayerservice/StagefrightRecorder.cpp
@@ -62,6 +62,7 @@
#include <system/audio.h>
#ifdef QCOM_HARDWARE
#include <QCMediaDefs.h>
+#include <cutils/properties.h>
#endif
#include "ARTPWriter.h"
@@ -1460,9 +1461,17 @@ status_t StagefrightRecorder::setupCameraSource(
mTimeBetweenTimeLapseFrameCaptureUs);
*cameraSource = mCameraSourceTimeLapse;
} else {
+ bool useMeta = true;
+#ifdef QCOM_HARDWARE
+ char value[PROPERTY_VALUE_MAX];
+ if (property_get("debug.camcorder.disablemeta", value, NULL) &&
+ atoi(value)) {
+ useMeta = false;
+ }
+#endif
*cameraSource = CameraSource::CreateFromCamera(
mCamera, mCameraProxy, mCameraId, videoSize, mFrameRate,
- mPreviewSurface, true /*storeMetaDataInVideoBuffers*/);
+ mPreviewSurface, useMeta /*storeMetaDataInVideoBuffers*/);
}
mCamera.clear();
mCameraProxy.clear();