зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1111387 - Nullcheck mTaskQueue in TrackBuffer::QueueInitializeDecoder, as we can shutdown in between dispatching and running the task that calls QueueInitializeDecoder. r=cajbir
This commit is contained in:
Родитель
afea3926fa
Коммит
0606140495
|
@ -348,6 +348,10 @@ TrackBuffer::NewDecoder()
|
|||
bool
|
||||
TrackBuffer::QueueInitializeDecoder(SourceBufferDecoder* aDecoder)
|
||||
{
|
||||
if (NS_WARN_IF(!mTaskQueue)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
RefPtr<nsIRunnable> task =
|
||||
NS_NewRunnableMethodWithArg<SourceBufferDecoder*>(this,
|
||||
&TrackBuffer::InitializeDecoder,
|
||||
|
|
Загрузка…
Ссылка в новой задаче