Bug 1385699. P3 - remove MediaDecoder::SetInfinite() and related code. r=cpearce

Since inf can be encoded in MDSM::mDuration, we don't need an additional flag
in MediaDecoder to indicate 'infinite' anymore. Note duration change from infinite
to finite is handled by MDSM, so we can remove the explicit calls to SetInfinite(false).

MozReview-Commit-ID: EoxwZJzPAJl
This commit is contained in:
JW Wang
2017-08-01 14:15:29 +08:00
parent a021b4659b
commit 07f6b2ed41
7 changed files with 8 additions and 75 deletions

View File

@@ -5505,7 +5505,7 @@ void HTMLMediaElement::PlaybackEnded()
}
}
if (mSrcStream || (mDecoder && mDecoder->IsInfinite())) {
if (mSrcStream) {
LOG(LogLevel::Debug, ("%p, got duration by reaching the end of the resource", this));
DispatchAsyncEvent(NS_LITERAL_STRING("durationchange"));
}