mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1303673: P7. Provide MFT error code. r=cpearce
MozReview-Commit-ID: BnKR6CKk3eU --HG-- extra : rebase_source : 53c105d1da372bd89698756988723f9e5ce8bed0
This commit is contained in:
parent
78ecdd8c4e
commit
5bb9584b9b
@ -123,7 +123,8 @@ WMFMediaDataDecoder::ProcessDecode(MediaRawData* aSample)
|
|||||||
HRESULT hr = mMFTManager->Input(aSample);
|
HRESULT hr = mMFTManager->Input(aSample);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
NS_WARNING("MFTManager rejected sample");
|
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) {
|
if (!mRecordedError) {
|
||||||
SendTelemetry(hr);
|
SendTelemetry(hr);
|
||||||
mRecordedError = true;
|
mRecordedError = true;
|
||||||
@ -150,7 +151,8 @@ WMFMediaDataDecoder::ProcessOutput()
|
|||||||
mCallback->InputExhausted();
|
mCallback->InputExhausted();
|
||||||
} else if (FAILED(hr)) {
|
} else if (FAILED(hr)) {
|
||||||
NS_WARNING("WMFMediaDataDecoder failed to output data");
|
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) {
|
if (!mRecordedError) {
|
||||||
SendTelemetry(hr);
|
SendTelemetry(hr);
|
||||||
mRecordedError = true;
|
mRecordedError = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user