mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1132342: Handle race should operation be aborted while reading metadata. r=karlt
This commit is contained in:
parent
21a52db121
commit
4b8b909e72
@ -614,6 +614,10 @@ TrackBuffer::InitializeDecoder(SourceBufferDecoder* aDecoder)
|
||||
MSE_DEBUG("was shut down while reading metadata. Aborting initialization.");
|
||||
return;
|
||||
}
|
||||
if (mCurrentDecoder != aDecoder) {
|
||||
MSE_DEBUG("append was cancelled. Aborting initialization.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv) && reader->IsWaitingOnCDMResource()) {
|
||||
mWaitingDecoders.AppendElement(aDecoder);
|
||||
|
Loading…
Reference in New Issue
Block a user