Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp

Issue 1844293006: Fix DCHECK to assert always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
index e666a35032bc023a8a4dc898e4a561e614f1a7f0..3240f4b4512af7440a334c2c99c2e86e1dde47c7 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
@@ -511,7 +511,7 @@ unsigned AudioHandler::numberOfOutputChannels() const
// This should only be called for ScriptProcessorNodes which are the only nodes where you can
// have an output with 0 channels. All other nodes have have at least one output channel, so
// there's no reason other nodes should ever call this function.
- DCHECK(1) << "numberOfOutputChannels() not valid for node type " << getNodeType();
+ DCHECK(0) << "numberOfOutputChannels() not valid for node type " << getNodeType();
return 1;
}
// ----------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698