Bug 1220551. Part 1 - fix the parameters passed to mBufferedState->NotifyDataArrived(). r=jya, a=sylvestre
authorJW Wang <jwwang@mozilla.com>
Mon, 02 Nov 2015 21:28:53 +0800
changeset 296660 9eb17d1e915c
parent 296659 be9dcc3b97b3
child 296661 1692a311615d
push id5277
push usercbook@mozilla.com
push date2015-11-09 10:34 +0000
treeherdermozilla-beta@d681ec6fe6b2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya, sylvestre
bugs1220551
milestone43.0
Bug 1220551. Part 1 - fix the parameters passed to mBufferedState->NotifyDataArrived(). r=jya, a=sylvestre
dom/media/webm/WebMReader.cpp
--- a/dom/media/webm/WebMReader.cpp
+++ b/dom/media/webm/WebMReader.cpp
@@ -850,17 +850,17 @@ void WebMReader::NotifyDataArrivedIntern
   if (NS_FAILED(rv)) {
     return;
   }
 
   for (auto& range : byteRanges) {
     nsRefPtr<MediaByteBuffer> bytes =
       resource->MediaReadAt(range.mStart, range.Length());
     NS_ENSURE_TRUE_VOID(bytes);
-    mBufferedState->NotifyDataArrived(bytes->Elements(), aLength, aOffset);
+    mBufferedState->NotifyDataArrived(bytes->Elements(), bytes->Length(), range.mStart);
   }
 }
 
 int WebMReader::GetVideoCodec()
 {
   return mVideoCodec;
 }