mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1289295 - Remove the call to Shutdown() from MediaDecoder::DecodeError(). r=cpearce
MozReview-Commit-ID: DcpaEFEsaWD --HG-- extra : rebase_source : fd63ff2faa79911b9ccfeed55d9e7348674ed1dc
This commit is contained in:
parent
6456eee1ba
commit
4d7a72bc94
@ -1052,7 +1052,7 @@ MediaDecoder::DecodeError()
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(!IsShutdown());
|
||||
mOwner->DecodeError();
|
||||
Shutdown();
|
||||
MOZ_ASSERT(IsShutdown());
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -61,8 +61,10 @@ public:
|
||||
// when the resource has a network error during loading.
|
||||
virtual void NetworkError() = 0;
|
||||
|
||||
// Called by the video decoder object, on the main thread, when the
|
||||
// Called by the decoder object, on the main thread, when the
|
||||
// resource has a decode error during metadata loading or decoding.
|
||||
// The decoder owner should call Shutdown() on the decoder and drop the
|
||||
// reference to the decoder to prevent further calls into the decoder.
|
||||
virtual void DecodeError() = 0;
|
||||
|
||||
// Return true if media element error attribute is not null.
|
||||
|
Loading…
Reference in New Issue
Block a user