Index: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp |
index 89a0541e38898a701ac1df66708aaa15ef6fcc0f..60a929b50173c164ac96ac45a4083aef9ed92a57 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp |
@@ -69,11 +69,11 @@ MediaStreamAudioSourceHandler::~MediaStreamAudioSourceHandler() { |
void MediaStreamAudioSourceHandler::setFormat(size_t numberOfChannels, |
float sourceSampleRate) { |
if (numberOfChannels != m_sourceNumberOfChannels || |
- sourceSampleRate != sampleRate()) { |
+ sourceSampleRate != context()->sampleRate()) { |
// The sample-rate must be equal to the context's sample-rate. |
if (!numberOfChannels || |
numberOfChannels > BaseAudioContext::maxNumberOfChannels() || |
- sourceSampleRate != sampleRate()) { |
+ sourceSampleRate != context()->sampleRate()) { |
// process() will generate silence for these uninitialized values. |
DLOG(ERROR) << "setFormat(" << numberOfChannels << ", " |
<< sourceSampleRate << ") - unhandled format change"; |