Changeset 145456 in webkit
- Timestamp:
- Mar 11, 2013, 6:25:33 PM (12 years ago)
- Location:
- branches/chromium/1410/Source/WebCore/Modules/webaudio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1410/Source/WebCore/Modules/webaudio/AudioNodeInput.cpp
r117354 r145456 155 155 for (HashSet<AudioNodeOutput*>::iterator i = m_outputs.begin(); i != m_outputs.end(); ++i) { 156 156 AudioNodeOutput* output = *i; 157 maxChannels = max(maxChannels, output->bus()->numberOfChannels()); 157 // Use output()->numberOfChannels() instead of output->bus()->numberOfChannels(), 158 // because the calling of AudioNodeOutput::bus() is not safe here. 159 maxChannels = max(maxChannels, output->numberOfChannels()); 158 160 } 159 161 -
branches/chromium/1410/Source/WebCore/Modules/webaudio/AudioNodeOutput.cpp
r118099 r145456 133 133 AudioBus* AudioNodeOutput::bus() const 134 134 { 135 // FIXME: Add ASSERTs/checkings to restrict the calling of bus(), because the calling is 136 // only safe after setting the in-place bus in pull() and before updating the referred bus. 135 137 ASSERT(const_cast<AudioNodeOutput*>(this)->context()->isAudioThread()); 136 138 ASSERT(m_actualDestinationBus);
Note:
See TracChangeset
for help on using the changeset viewer.