From 5bb9584b9b86fb4d9727b55783668f7b34f18a09 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Tue, 20 Sep 2016 16:18:17 +1000 Subject: [PATCH] Bug 1303673: P7. Provide MFT error code. r=cpearce MozReview-Commit-ID: BnKR6CKk3eU --HG-- extra : rebase_source : 53c105d1da372bd89698756988723f9e5ce8bed0 --- dom/media/platforms/wmf/WMFMediaDataDecoder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp index 72087cb53d9f..86fa3a4d6ce5 100644 --- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp +++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp @@ -123,7 +123,8 @@ WMFMediaDataDecoder::ProcessDecode(MediaRawData* aSample) HRESULT hr = mMFTManager->Input(aSample); if (FAILED(hr)) { NS_WARNING("MFTManager rejected sample"); - mCallback->Error(MediaResult(NS_ERROR_DOM_MEDIA_DECODE_ERR, __func__)); + mCallback->Error(MediaResult(NS_ERROR_DOM_MEDIA_DECODE_ERR, + RESULT_DETAIL("MFTManager::Input:%x", hr))); if (!mRecordedError) { SendTelemetry(hr); mRecordedError = true; @@ -150,7 +151,8 @@ WMFMediaDataDecoder::ProcessOutput() mCallback->InputExhausted(); } else if (FAILED(hr)) { NS_WARNING("WMFMediaDataDecoder failed to output data"); - mCallback->Error(MediaResult(NS_ERROR_DOM_MEDIA_DECODE_ERR, __func__)); + mCallback->Error(MediaResult(NS_ERROR_DOM_MEDIA_DECODE_ERR, + RESULT_DETAIL("MFTManager::Output:%x", hr))); if (!mRecordedError) { SendTelemetry(hr); mRecordedError = true;