summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-29 13:37:25 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-29 13:37:25 +0000
commit98aaa358c689c7615b1145623ec5fd52a74be57e (patch)
treebdc06ced96b43047247ffc0680883e4a097d639a
parenta77e07c00effaff7fd8885a6835f0c8a6db86f93 (diff)
downloadchromium_src-98aaa358c689c7615b1145623ec5fd52a74be57e.zip
chromium_src-98aaa358c689c7615b1145623ec5fd52a74be57e.tar.gz
chromium_src-98aaa358c689c7615b1145623ec5fd52a74be57e.tar.bz2
Merge 260099 "Disable the "check for no data" timer for audio on..."
> Disable the "check for no data" timer for audio on Mac. > This seems to be causing problems when a mic gets temporarily suspended. > > BUG=357501 > R=henrika@chromium.org > > Review URL: https://codereview.chromium.org/216483003 TBR=tommi@chromium.org Review URL: https://codereview.chromium.org/218323002 git-svn-id: svn://svn.chromium.org/chrome/branches/1847/src@260366 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--media/audio/audio_input_controller.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index f9d555c..c937fa9 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -18,6 +18,8 @@ const int kMaxInputChannels = 2;
// to resolve http://crbug.com/79936 for Windows platforms. This then caused
// breakage (very hard to repro bugs!) on other platforms: See
// http://crbug.com/226327 and http://crbug.com/230972.
+// See also that the timer has been disabled on Mac now due to
+// crbug.com/357501.
const int kTimerResetIntervalSeconds = 1;
// We have received reports that the timer can be too trigger happy on some
// Mac devices and the initial timer interval has therefore been increased
@@ -199,6 +201,13 @@ void AudioInputController::DoCreateForStream(
}
DCHECK(!no_data_timer_.get());
+
+#if defined(OS_MACOSX)
+ // This is a fix for crbug.com/357501. The timer can trigger when closing
+ // the lid on Macs, which causes more problems than the timer fixes.
+ enable_nodata_timer = false;
+#endif
+
if (enable_nodata_timer) {
// Create the data timer which will call DoCheckForNoData(). The timer
// is started in DoRecord() and restarted in each DoCheckForNoData()