Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku

1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().

MozReview-Commit-ID: FwWf4m5OAOP

--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
This commit is contained in:
JW Wang 2016-07-28 16:57:09 +08:00
parent 453c175228
commit 64c1909e96

View File

@ -1361,10 +1361,7 @@ void
MediaDecoder::DurationChanged()
{
MOZ_ASSERT(NS_IsMainThread());
if (IsShutdown()) {
return;
}
MOZ_ASSERT(!IsShutdown());
double oldDuration = mDuration;
if (IsInfinite()) {