Bug 1229742: P1. Only clear EOS flag if we have new data. r=gerald

MozReview-Commit-ID: ttmWsAIPxQ
This commit is contained in:
Jean-Yves Avenard 2016-02-09 00:35:20 +11:00
Родитель ef9e8b9a0d
Коммит 291989df71
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}