Title: [278729] trunk/Source/WebCore
Revision
278729
Author
[email protected]
Date
2021-06-10 13:53:47 -0700 (Thu, 10 Jun 2021)

Log Message

Fix incorrect check in AudioNode.disconnect()
https://bugs.webkit.org/show_bug.cgi?id=226818
<rdar://problem/79076999>

Reviewed by Eric Carlson.

* Modules/webaudio/AudioNode.cpp:
(WebCore::AudioNode::disconnect):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (278728 => 278729)


--- trunk/Source/WebCore/ChangeLog	2021-06-10 20:50:40 UTC (rev 278728)
+++ trunk/Source/WebCore/ChangeLog	2021-06-10 20:53:47 UTC (rev 278729)
@@ -1,3 +1,14 @@
+2021-06-10  Chris Dumez  <[email protected]>
+
+        Fix incorrect check in AudioNode.disconnect()
+        https://bugs.webkit.org/show_bug.cgi?id=226818
+        <rdar://problem/79076999>
+
+        Reviewed by Eric Carlson.
+
+        * Modules/webaudio/AudioNode.cpp:
+        (WebCore::AudioNode::disconnect):
+
 2021-06-10  Toshio Ogasawara  <[email protected]>
 
         [MSE] When currentTime is a large value, it takes time to process SourceBufferPrivate::evictCodedFrames().

Modified: trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp (278728 => 278729)


--- trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2021-06-10 20:50:40 UTC (rev 278728)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2021-06-10 20:53:47 UTC (rev 278729)
@@ -316,7 +316,7 @@
     if (outputIndex >= numberOfOutputs())
         return Exception { IndexSizeError, "output index is out of bounds"_s };
 
-    if (outputIndex >= destinationNode.numberOfInputs())
+    if (inputIndex >= destinationNode.numberOfInputs())
         return Exception { IndexSizeError, "input index is out of bounds"_s };
 
     auto* output = this->output(outputIndex);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to