diff options
author | Marco Nelissen <marcone@google.com> | 2012-10-24 13:43:32 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-10-24 13:43:32 -0700 |
commit | f76ca8f6aaa56146b388239c034bd53f19b9abf2 (patch) | |
tree | 0b4ed233946655deb42c72be60afb7c8ddfbbcee /media/libstagefright/ThrottledSource.cpp | |
parent | feb1a72faade5e55bb01c06ec64749b2de172642 (diff) | |
download | frameworks_av-f76ca8f6aaa56146b388239c034bd53f19b9abf2.zip frameworks_av-f76ca8f6aaa56146b388239c034bd53f19b9abf2.tar.gz frameworks_av-f76ca8f6aaa56146b388239c034bd53f19b9abf2.tar.bz2 |
Make ThrottledSource more usable
Add reconnectAtOffset(), DrmInitialization() and getDrmInfo().
Also rearrange the code a bit so all the methods that just call through
to the wrapped DataSource are in the header.
Change-Id: If25b674df317b0f6da5d36241c694e32abb0a01c
Diffstat (limited to 'media/libstagefright/ThrottledSource.cpp')
-rw-r--r-- | media/libstagefright/ThrottledSource.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/media/libstagefright/ThrottledSource.cpp b/media/libstagefright/ThrottledSource.cpp index 348a9d3..7496752 100644 --- a/media/libstagefright/ThrottledSource.cpp +++ b/media/libstagefright/ThrottledSource.cpp @@ -31,10 +31,6 @@ ThrottledSource::ThrottledSource( CHECK(mBandwidthLimitBytesPerSecond > 0); } -status_t ThrottledSource::initCheck() const { - return mSource->initCheck(); -} - ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { Mutex::Autolock autoLock(mLock); @@ -62,17 +58,9 @@ ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { if (whenUs > nowUs) { usleep(whenUs - nowUs); } - return n; } -status_t ThrottledSource::getSize(off64_t *size) { - return mSource->getSize(size); -} - -uint32_t ThrottledSource::flags() { - return mSource->flags(); -} } // namespace android |