Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 8f22491

Browse files
author
Ehsan Akhgari
committed
Bug 865532 - Don't attempt to stop an AudioBufferSourceNode that doesn't have a context; r=padenot
1 parent 6c274aa commit 8f22491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/media/webaudio/AudioBufferSourceNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ AudioBufferSourceNode::Stop(double aWhen, ErrorResult& aRv)
527527
}
528528

529529
AudioNodeStream* ns = static_cast<AudioNodeStream*>(mStream.get());
530-
if (!ns) {
530+
if (!ns || !Context()) {
531531
// We've already stopped and had our stream shut down
532532
return;
533533
}

0 commit comments

Comments
 (0)