Bug 1180403: P1. Ensure buffered index is up to date. r=cpearce

This commit is contained in:
Jean-Yves Avenard 2015-07-08 13:07:09 +10:00
Родитель 56946ab5af
Коммит 641d20eb39
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -325,6 +325,7 @@ MP4TrackDemuxer::SkipToNextRandomAccessPoint(media::TimeUnit aTimeThreshold)
int64_t
MP4TrackDemuxer::GetEvictionOffset(media::TimeUnit aTime)
{
EnsureUpToDateIndex();
MonitorAutoLock mon(mMonitor);
uint64_t offset = mIndex->GetEvictionOffset(aTime.ToMicroseconds());
return int64_t(offset == std::numeric_limits<uint64_t>::max() ? 0 : offset);