Bug 865532 - Don't attempt to stop an AudioBufferSourceNode that doesn't have a context; r=padenot

This commit is contained in:
Ehsan Akhgari 2013-04-24 22:24:25 -04:00
Родитель 6c274aa699
Коммит 8f22491495
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -527,7 +527,7 @@ AudioBufferSourceNode::Stop(double aWhen, ErrorResult& aRv)
}
AudioNodeStream* ns = static_cast<AudioNodeStream*>(mStream.get());
if (!ns) {
if (!ns || !Context()) {
// We've already stopped and had our stream shut down
return;
}