From 1ca7466136b73149282c5eeac04d9b9b87057976 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Fri, 15 Dec 2017 17:05:42 -0600 Subject: [PATCH] Bug 1425596 - Stop busy looping in mFakeAudioDevice. r=jya This is a workaround for the fact that our code is wrong. FakeAudioDeviceModule :::TimeUntilNextProcess() returns 0, so we're busy looping. I'm switching that to 100, which is arbitrary, but makes the problem go away. I want to fix that soon, because this is a terrible workaround. FakeAudioDeviceModule is _not_ made to be used in production. MozReview-Commit-ID: FoGs6GFsRRN --HG-- extra : rebase_source : d62f7c2d5b98c4814c06be13aca49bd478d5b381 --- .../webrtc/modules/audio_device/include/fake_audio_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/webrtc/trunk/webrtc/modules/audio_device/include/fake_audio_device.h b/media/webrtc/trunk/webrtc/modules/audio_device/include/fake_audio_device.h index 98fd2f46f63f..26fc07e4ebb5 100644 --- a/media/webrtc/trunk/webrtc/modules/audio_device/include/fake_audio_device.h +++ b/media/webrtc/trunk/webrtc/modules/audio_device/include/fake_audio_device.h @@ -39,7 +39,7 @@ class FakeAudioDeviceModule : public AudioDeviceModule { virtual int32_t SetStereoRecording(bool enable) { return 0; } virtual int32_t SetAGC(bool enable) { return 0; } virtual int32_t StopRecording() { return 0; } - virtual int64_t TimeUntilNextProcess() { return 0; } + virtual int64_t TimeUntilNextProcess() { return 100; } virtual void Process() {} virtual int32_t Terminate() { return 0; }