Bug 1441779 - Part 1: Change nsTArray<SourceBufferTask> to nsTArray<RefPtr<SourceBufferTask>> r=gerald
authorMiko Mynttinen <mikokm@gmail.com>
Thu, 01 Mar 2018 11:55:18 +0100
changeset 461250 757abead90e1058c94ab43320341c65c954900ac
parent 461249 8e5b1525be692c82dec8ed6e1573c4afe6cf6af4
child 461251 1245c42d81aaf9bcaa91c2a752228328d34e593c
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1441779
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1441779 - Part 1: Change nsTArray<SourceBufferTask> to nsTArray<RefPtr<SourceBufferTask>> r=gerald MozReview-Commit-ID: 8lV4Pp9p7Ch
dom/media/mediasource/TrackBuffersManager.h
--- a/dom/media/mediasource/TrackBuffersManager.h
+++ b/dom/media/mediasource/TrackBuffersManager.h
@@ -52,17 +52,17 @@ public:
     if (!mQueue.Length()) {
       return nullptr;
     }
     RefPtr<SourceBufferTask> task = Move(mQueue[0]);
     mQueue.RemoveElementAt(0);
     return task.forget();
   }
 
-  nsTArray<SourceBufferTask>::size_type Length() const
+  nsTArray<RefPtr<SourceBufferTask>>::size_type Length() const
   {
     return mQueue.Length();
   }
 private:
   nsTArray<RefPtr<SourceBufferTask>> mQueue;
 };
 
 DDLoggedTypeDeclName(TrackBuffersManager);