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:
JW Wang 2016-07-26 14:18:47 +08:00
parent 6456eee1ba
commit 4d7a72bc94
2 changed files with 4 additions and 2 deletions

View File

@ -1052,7 +1052,7 @@ MediaDecoder::DecodeError()
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(!IsShutdown());
mOwner->DecodeError();
Shutdown();
MOZ_ASSERT(IsShutdown());
}
void

View File

@ -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.