summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-06-11 04:38:35 -0700
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-06-11 14:19:52 +0100
commiteaa35b4fdd81af7dd6ad35a10d9eb27ff9758739 (patch)
tree46bed8297595c64c9ab81b8a4ebf8c6c624ab69b
parentc6cade74b74af9fc66cd7c6af8bf74e4fe1361bc (diff)
parent3da446303432e640c4c8240bbb2404f7c5dad97d (diff)
downloadframeworks_av-eaa35b4fdd81af7dd6ad35a10d9eb27ff9758739.zip
frameworks_av-eaa35b4fdd81af7dd6ad35a10d9eb27ff9758739.tar.gz
frameworks_av-eaa35b4fdd81af7dd6ad35a10d9eb27ff9758739.tar.bz2
Merge "libstagefright: support for disabling buffer metadata" into cm-10.1
Change-Id: I6a7a91d930f7789ca78370f0c0e0e306dad87028
-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();