Bug 1290780. Part 8 - Assert IsShutdown() is false in SetExplicitDuration(). r=kaku

It is called from MediaSourceDecoder::SetMediaSourceDuration() which asserts !IsShutdown().

MozReview-Commit-ID: LF8rRPZhkA2

--HG--
extra : rebase_source : 886778f70d00e8670a203e9d322e442c9d117a72
This commit is contained in:
JW Wang 2016-07-28 16:54:53 +08:00
parent 95cf484548
commit 453c175228

View File

@ -542,6 +542,7 @@ protected:
void SetExplicitDuration(double aValue)
{
MOZ_ASSERT(!IsShutdown());
mExplicitDuration.Set(Some(aValue));
// We Invoke DurationChanged explicitly, rather than using a watcher, so