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 298365 9eb17d1e915ca18e36ba3bc8939ead194af99cb0
parent 298364 be9dcc3b97b3fc5402030466307e61902adfb6df
child 298366 1692a311615df714be523d6941ac297f82ba787a
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [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;
 }