Don't set BufferType to clear for non-encrypted buffers

When non-encrypted buffers are sent to OEMCrypto_DecryptCTR,
the cdm is overriding the buffer type to be non-secure.  This
is incorrect, the encrypted state is not the same as the buffer
protection level.

This change removes the special case override that should not
be there.

bug: 8621521
Change-Id: I705b1dc82b393305b9e6bdcb524d6b8126f58d3d
This commit is contained in:
Jeff Tinker
2013-04-18 18:23:21 -07:00
parent cd304b1c46
commit d601914d57

View File

@@ -401,9 +401,6 @@ CdmResponseType CryptoSession::Decrypt(bool is_encrypted,
OEMCrypto_DestBufferDesc buffer_descriptor;
buffer_descriptor.type = destination_buffer_type_;
if (!is_encrypted)
buffer_descriptor.type = OEMCrypto_BufferType_Clear;
switch (buffer_descriptor.type) {
case OEMCrypto_BufferType_Clear:
buffer_descriptor.buffer.clear.address =