From 9e671905432f9087c45496ce82b5a5d729450dbb Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Tue, 17 Dec 2013 16:15:07 +0100 Subject: [PATCH] Bug 936784 - Don't overbuffer in the MSG on AudioContext shutdown. r=roc,ehsan --- content/media/webaudio/AudioContext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/media/webaudio/AudioContext.cpp b/content/media/webaudio/AudioContext.cpp index 850727f1ef6c..3c7fa02c986b 100644 --- a/content/media/webaudio/AudioContext.cpp +++ b/content/media/webaudio/AudioContext.cpp @@ -544,7 +544,10 @@ AudioContext::Shutdown() { mIsShutDown = true; - Suspend(); + // We mute rather than suspending, because the delay between the ::Shutdown + // call and the CC would make us overbuffer in the MediaStreamGraph. + // See bug 936784 for details. + Mute(); mDecoder.Shutdown();