Commit 95e07abe authored by jrummell's avatar jrummell Committed by Commit bot

Handle all possible cdm::Status values before passing through Pepper

BUG=471322
TEST=EME tests pass

Review URL: https://codereview.chromium.org/1050823009

Cr-Commit-Position: refs/heads/master@{#327181}
parent 2e3b5c8c
......@@ -105,10 +105,16 @@ PP_DecryptResult CdmStatusToPpDecryptResult(cdm::Status status) {
return PP_DECRYPTRESULT_DECRYPT_ERROR;
case cdm::kDecodeError:
return PP_DECRYPTRESULT_DECODE_ERROR;
default:
PP_NOTREACHED();
return PP_DECRYPTRESULT_DECODE_ERROR;
case cdm::kSessionError:
case cdm::kDeferredInitialization:
// kSessionError and kDeferredInitialization are only used by the
// Initialize* methods internally and never returned. Deliver*
// methods should never use these values.
break;
}
PP_NOTREACHED();
return PP_DECRYPTRESULT_DECRYPT_ERROR;
}
PP_DecryptedFrameFormat CdmVideoFormatToPpDecryptedFrameFormat(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment