diff options
author | Gloria Wang <gwang@google.com> | 2011-04-29 10:44:46 -0700 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2011-04-29 11:01:36 -0700 |
commit | 7340743ce30766af6334bbd9acf813eb66dd5a60 (patch) | |
tree | c31894af54e1767278fa9d7ff856753f8c6ca68d /include/media | |
parent | d0675ede6de2249256d20271a19ccbf9f11745b8 (diff) | |
download | frameworks_av-7340743ce30766af6334bbd9acf813eb66dd5a60.zip frameworks_av-7340743ce30766af6334bbd9acf813eb66dd5a60.tar.gz frameworks_av-7340743ce30766af6334bbd9acf813eb66dd5a60.tar.bz2 |
Add DRM errors in the DRM frameworks to MediaErrors also.
For bug 4350156.
Change-Id: Ib5711ec642178a49203a448b7f5114e675d49394
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/MediaErrors.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/media/stagefright/MediaErrors.h b/include/media/stagefright/MediaErrors.h index 1a6d548..7cc993c 100644 --- a/include/media/stagefright/MediaErrors.h +++ b/include/media/stagefright/MediaErrors.h @@ -41,7 +41,17 @@ enum { INFO_FORMAT_CHANGED = MEDIA_ERROR_BASE - 12, INFO_DISCONTINUITY = MEDIA_ERROR_BASE - 13, - ERROR_NO_LICENSE = MEDIA_ERROR_BASE - 14, + // The following constant values should be in sync with + // drm/drm_framework_common.h + DRM_ERROR_BASE = -2000, + + ERROR_DRM_UNKNOWN = DRM_ERROR_BASE, + ERROR_DRM_NO_LICENSE = DRM_ERROR_BASE - 1, + ERROR_DRM_LICENSE_EXPIRED = DRM_ERROR_BASE - 2, + ERROR_DRM_SESSION_NOT_OPENED = DRM_ERROR_BASE - 3, + ERROR_DRM_DECRYPT_UNIT_NOT_INITIALIZED = DRM_ERROR_BASE - 4, + ERROR_DRM_DECRYPT = DRM_ERROR_BASE - 5, + ERROR_DRM_CANNOT_HANDLE = DRM_ERROR_BASE - 6, // Heartbeat Error Codes HEARTBEAT_ERROR_BASE = -3000, |