diff options
author | Gloria Wang <gwang@google.com> | 2010-11-19 15:19:36 -0800 |
---|---|---|
committer | Gloria Wang <gwang@google.com> | 2010-11-19 15:52:32 -0800 |
commit | 5fc3edb13edb058f14e6550d295ce3e50e5ebf8c (patch) | |
tree | e6f75eb8cbed46e3368ec25e684ca0429f520260 /drm/libdrmframework/DrmManagerClientImpl.cpp | |
parent | a3326781352888ff80fcf920cf93fd738bb69e66 (diff) | |
download | frameworks_base-5fc3edb13edb058f14e6550d295ce3e50e5ebf8c.zip frameworks_base-5fc3edb13edb058f14e6550d295ce3e50e5ebf8c.tar.gz frameworks_base-5fc3edb13edb058f14e6550d295ce3e50e5ebf8c.tar.bz2 |
64-bit file size/offset support for DRM framework
Change-Id: I0ba7147607825234df9fa28732e1bba344e82e79
Diffstat (limited to 'drm/libdrmframework/DrmManagerClientImpl.cpp')
-rw-r--r-- | drm/libdrmframework/DrmManagerClientImpl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drm/libdrmframework/DrmManagerClientImpl.cpp b/drm/libdrmframework/DrmManagerClientImpl.cpp index b3ae9a7..519ed67 100644 --- a/drm/libdrmframework/DrmManagerClientImpl.cpp +++ b/drm/libdrmframework/DrmManagerClientImpl.cpp @@ -170,7 +170,7 @@ status_t DrmManagerClientImpl::consumeRights( } status_t DrmManagerClientImpl::setPlaybackStatus( - int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int position) { + int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { status_t status = DRM_ERROR_UNKNOWN; if (NULL != decryptHandle) { status = getDrmManagerService()->setPlaybackStatus( @@ -231,7 +231,7 @@ status_t DrmManagerClientImpl::getAllSupportInfo( } DecryptHandle* DrmManagerClientImpl::openDecryptSession( - int uniqueId, int fd, int offset, int length) { + int uniqueId, int fd, off64_t offset, off64_t length) { return getDrmManagerService()->openDecryptSession(uniqueId, fd, offset, length); } @@ -283,7 +283,7 @@ status_t DrmManagerClientImpl::finalizeDecryptUnit( } ssize_t DrmManagerClientImpl::pread(int uniqueId, DecryptHandle* decryptHandle, - void* buffer, ssize_t numBytes, off_t offset) { + void* buffer, ssize_t numBytes, off64_t offset) { ssize_t retCode = INVALID_VALUE; if ((NULL != decryptHandle) && (NULL != buffer) && (0 < numBytes)) { retCode = getDrmManagerService()->pread(uniqueId, decryptHandle, buffer, numBytes, offset); |