Bug 1303673 - Part 2: Change error code to OOM. r=cpearce, a=gchang
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 20 Sep 2016 15:51:54 +1000
changeset 355719 7a1355cb3354edc65fe6072bd51984276a5f5cd2
parent 355718 54e5ae3269df274c925a33a62c37d8d0d049ae4f
child 355720 e8e1ddaa8b88e0e91345986f4f5ff9a02ec67231
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, gchang
bugs1303673
milestone51.0a2
Bug 1303673 - Part 2: Change error code to OOM. r=cpearce, a=gchang Only time this error can occur is if we failed to allocate memory. MozReview-Commit-ID: A37SQnraC54
dom/media/platforms/agnostic/BlankDecoderModule.cpp
--- a/dom/media/platforms/agnostic/BlankDecoderModule.cpp
+++ b/dom/media/platforms/agnostic/BlankDecoderModule.cpp
@@ -77,17 +77,17 @@ public:
   {
     return "blank media data decoder";
   }
 
 private:
   void OutputFrame(MediaData* aData)
   {
     if (!aData) {
-      mCallback->Error(MediaResult(NS_ERROR_DOM_MEDIA_FATAL_ERR, __func__));
+      mCallback->Error(MediaResult(NS_ERROR_OUT_OF_MEMORY, __func__));
       return;
     }
 
     // Frames come out in DTS order but we need to output them in PTS order.
     mReorderQueue.Push(aData);
 
     while (mReorderQueue.Length() > mMaxRefFrames) {
       mCallback->Output(mReorderQueue.Pop().get());