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 | a15ed9529e70caaf42aae78f9fe530abe38bcc1b (patch) | |
tree | 8ec2731aa36bbe3880d45ed3821782b0f7f4b3e5 /media/libstagefright/ThrottledSource.cpp | |
parent | bfa08b2a5e807c3d741ee2163ca9a141cf5dc144 (diff) | |
download | frameworks_av-a15ed9529e70caaf42aae78f9fe530abe38bcc1b.zip frameworks_av-a15ed9529e70caaf42aae78f9fe530abe38bcc1b.tar.gz frameworks_av-a15ed9529e70caaf42aae78f9fe530abe38bcc1b.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 |