From da82e0ff2bd793d2ac053f6bf3b41d5b87de9ae0 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Mon, 25 May 2015 15:09:16 +1000 Subject: [PATCH] Bug 1163227: Part8. Fix incorrect seconds / microseconds conversion. r=mattwoodrow This led to incorrect data eviction in sourcebuffer --- dom/media/mediasource/TrackBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/media/mediasource/TrackBuffer.cpp b/dom/media/mediasource/TrackBuffer.cpp index 384c70d6d2a4..659618626d0d 100644 --- a/dom/media/mediasource/TrackBuffer.cpp +++ b/dom/media/mediasource/TrackBuffer.cpp @@ -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,