Bug 1303673: P2. Change error code to OOM. r?cpearce
Only time this error can occur is if we failed to allocate memory.
MozReview-Commit-ID: A37SQnraC54
--- 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());