| Index: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp
|
| index 1579cf3c8c8aea2c4931518fb42913c45ab98da1..efa097e7723861a5d028b8f69ead777c08b8a4a3 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp
|
| @@ -122,8 +122,15 @@ MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode(AbstractAudioCo
|
| setHandler(MediaStreamAudioDestinationHandler::create(*this, numberOfChannels));
|
| }
|
|
|
| -MediaStreamAudioDestinationNode* MediaStreamAudioDestinationNode::create(AbstractAudioContext& context, size_t numberOfChannels)
|
| +MediaStreamAudioDestinationNode* MediaStreamAudioDestinationNode::create(AbstractAudioContext& context, size_t numberOfChannels, ExceptionState& exceptionState)
|
| {
|
| + DCHECK(isMainThread());
|
| +
|
| + if (context.isContextClosed()) {
|
| + context.throwExceptionForClosedState(exceptionState);
|
| + return nullptr;
|
| + }
|
| +
|
| return new MediaStreamAudioDestinationNode(context, numberOfChannels);
|
| }
|
|
|
|
|