Bug 1200903 - Fix MediaSystemResourceService::RemoveRequests() r=cpearce
authorSotaro Ikeda <sikeda@mozilla.com>
Thu, 10 Sep 2015 07:50:32 -0700
changeset 294392 7e7b9220a6888b357d441ca11ad8f6cd8237970a
parent 294391 856d68a4477a59d3401f4e58c49cb9efa90fab8b
child 294393 1c0313734ccbe166ede9482addbc27b936e1d6d1
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [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)