Bug 1200903 - Fix MediaSystemResourceService::RemoveRequests() r=cpearce
authorSotaro Ikeda <sikeda@mozilla.com>
Thu, 10 Sep 2015 07:50:32 -0700
changeset 296097 7e7b9220a6888b357d441ca11ad8f6cd8237970a
parent 296096 856d68a4477a59d3401f4e58c49cb9efa90fab8b
child 296098 1c0313734ccbe166ede9482addbc27b936e1d6d1
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)
reviewerscpearce
bugs1200903
milestone43.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 1200903 - Fix MediaSystemResourceService::RemoveRequests() r=cpearce
dom/media/systemservices/MediaSystemResourceService.cpp
--- a/dom/media/systemservices/MediaSystemResourceService.cpp
+++ b/dom/media/systemservices/MediaSystemResourceService.cpp
@@ -230,17 +230,16 @@ MediaSystemResourceService::RemoveReques
     }
   }
 
   std::deque<MediaSystemResourceRequest>& waitingRequests =
     resource->mWaitingRequests;
   for (it = waitingRequests.begin(); it != waitingRequests.end();) {
     if ((*it).mParent == aParent) {
       it = waitingRequests.erase(it);
-      return;
     } else {
       it++;
     }
   }
 }
 
 void
 MediaSystemResourceService::UpdateRequests(MediaSystemResourceType aResourceType)