Now that MediaErrors.h has errors for some of the conditions we were using custom error codes for previously, we should switch to using the standard error codes in order to get better error reporting to the app. Bug: 8621516 This is a merge of https://widevine-internal-review.googlesource.com/#/c/5040/ from widevine cdm repo to android repo. Change-Id: I111a8825fa8fd8186a0d535cf19a7b08d9f35aee
29 lines
678 B
C++
29 lines
678 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_ERRORS_H_
|
|
#define WV_ERRORS_H_
|
|
|
|
#include "media/stagefright/MediaErrors.h"
|
|
|
|
namespace wvdrm {
|
|
|
|
using android::ERROR_DRM_VENDOR_MIN;
|
|
using android::ERROR_DRM_VENDOR_MAX;
|
|
|
|
enum {
|
|
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN,
|
|
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 1,
|
|
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 2,
|
|
kErrorCannotGuaranteeSecurity = ERROR_DRM_VENDOR_MIN + 3,
|
|
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 4,
|
|
|
|
// Used by crypto test mode
|
|
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
|
};
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_ERRORS_H_
|