Commit c65c4700 authored by crogers@google.com's avatar crogers@google.com

Avoid unnecessary ASSERT in AudioDSPKernelProcessor::setNumberOfChannels()

https://bugs.webkit.org/show_bug.cgi?id=69361

Reviewed by James Robinson.

No new tests.  This changes no JavaScript API.

* platform/audio/AudioDSPKernelProcessor.cpp:
(WebCore::AudioDSPKernelProcessor::setNumberOfChannels):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f9fb54c1
2011-10-04 Chris Rogers <crogers@google.com>
Avoid unnecessary ASSERT in AudioDSPKernelProcessor::setNumberOfChannels()
https://bugs.webkit.org/show_bug.cgi?id=69361
Reviewed by James Robinson.
No new tests. This changes no JavaScript API.
* platform/audio/AudioDSPKernelProcessor.cpp:
(WebCore::AudioDSPKernelProcessor::setNumberOfChannels):
2011-10-04 Anders Carlsson <andersca@apple.com>
Use const PlatformWheelEvent references where possible
......@@ -107,6 +107,9 @@ void AudioDSPKernelProcessor::reset()
void AudioDSPKernelProcessor::setNumberOfChannels(unsigned numberOfChannels)
{
if (numberOfChannels == m_numberOfChannels)
return;
ASSERT(!isInitialized());
if (!isInitialized())
m_numberOfChannels = numberOfChannels;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment