зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1163227: Part8. Fix incorrect seconds / microseconds conversion. r=mattwoodrow
This led to incorrect data eviction in sourcebuffer
This commit is contained in:
Родитель
53af195bf0
Коммит
da82e0ff2b
|
@ -346,7 +346,7 @@ TrackBuffer::EvictData(double aPlaybackTime,
|
|||
toEvict -= decoders[i]->GetResource()->EvictAll();
|
||||
} else {
|
||||
int64_t playbackOffset =
|
||||
decoders[i]->ConvertToByteOffset(time.ToMicroseconds());
|
||||
decoders[i]->ConvertToByteOffset(time.ToSeconds());
|
||||
MSE_DEBUG("evicting some bufferedEnd=%f "
|
||||
"aPlaybackTime=%f time=%f, playbackOffset=%lld size=%lld",
|
||||
buffered.GetEnd().ToSeconds(), aPlaybackTime, time,
|
||||
|
|
Загрузка…
Ссылка в новой задаче