summaryrefslogtreecommitdiffstats
path: root/media/libmedia/MediaProfiles.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-10-22 17:44:24 -0700
committerEric Laurent <elaurent@google.com>2012-10-22 18:26:50 -0700
commitb1eb1a0dd38a36dd0c0626d3d57043dbd0042a92 (patch)
treedd1bdc77dd66e946b9ef20f56dda332e8b6de8b4 /media/libmedia/MediaProfiles.cpp
parente384d75b95b9db30d64a18ada93e070cf07de306 (diff)
downloadframeworks_av-b1eb1a0dd38a36dd0c0626d3d57043dbd0042a92.zip
frameworks_av-b1eb1a0dd38a36dd0c0626d3d57043dbd0042a92.tar.gz
frameworks_av-b1eb1a0dd38a36dd0c0626d3d57043dbd0042a92.tar.bz2
stagefright: discard audio at start of capture
The new camcorder start sound is longer than previous one and we must discard more audio when capture starts. Ideally, camcorder should use synchronous record start. Bug 7394330. Change-Id: I219b4e231aba706776dc7ccc4f1c996eaf22f61a
Diffstat (limited to 'media/libmedia/MediaProfiles.cpp')
-rw-r--r--media/libmedia/MediaProfiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/MediaProfiles.cpp b/media/libmedia/MediaProfiles.cpp
index 48bbf8f..8319cd7 100644
--- a/media/libmedia/MediaProfiles.cpp
+++ b/media/libmedia/MediaProfiles.cpp
@@ -373,7 +373,7 @@ MediaProfiles::getCameraId(const char** atts)
void MediaProfiles::addStartTimeOffset(int cameraId, const char** atts)
{
- int offsetTimeMs = 700;
+ int offsetTimeMs = 1000;
if (atts[2]) {
CHECK(!strcmp("startOffsetMs", atts[2]));
offsetTimeMs = atoi(atts[3]);