зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1229742: P1. Only clear EOS flag if we have new data. r=gerald
MozReview-Commit-ID: ttmWsAIPxQ
This commit is contained in:
Родитель
ef9e8b9a0d
Коммит
291989df71
|
@ -794,7 +794,7 @@ MediaFormatReader::UpdateReceivedNewData(TrackType aTrack)
|
|||
bool hasLastEnd;
|
||||
media::TimeUnit lastEnd = decoder.mTimeRanges.GetEnd(&hasLastEnd);
|
||||
if (hasLastEnd) {
|
||||
if (decoder.mLastTimeRangesEnd && decoder.mLastTimeRangesEnd.ref() > lastEnd) {
|
||||
if (decoder.mLastTimeRangesEnd && decoder.mLastTimeRangesEnd.ref() < lastEnd) {
|
||||
// New data was added after our previous end, we can clear the EOS flag.
|
||||
decoder.mDemuxEOS = false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче