diff options
author | Andreas Huber <andih@google.com> | 2009-10-23 10:22:30 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-10-23 10:35:08 -0700 |
commit | 9a12baf929ea803915d7ab626b200ffefb4fbac7 (patch) | |
tree | 12a3f70e5ef69e09ea9e9ca4e4dcd4949718e924 /media/libstagefright/FileSource.cpp | |
parent | 9069aa31accee9c23a4cf228ca27fe8fa8506a56 (diff) | |
download | frameworks_base-9a12baf929ea803915d7ab626b200ffefb4fbac7.zip frameworks_base-9a12baf929ea803915d7ab626b200ffefb4fbac7.tar.gz frameworks_base-9a12baf929ea803915d7ab626b200ffefb4fbac7.tar.bz2 |
New API to instantiate a MediaExtractor given a URI and optional MIME type.
Also DataSources now must provide a method initCheck()
and DataSource::reat_at has been renamed to readAt to conform to
standard API naming guidelines.
Diffstat (limited to 'media/libstagefright/FileSource.cpp')
-rw-r--r-- | media/libstagefright/FileSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/FileSource.cpp b/media/libstagefright/FileSource.cpp index f6b90b2..f318ee3 100644 --- a/media/libstagefright/FileSource.cpp +++ b/media/libstagefright/FileSource.cpp @@ -30,11 +30,11 @@ FileSource::~FileSource() { } } -status_t FileSource::InitCheck() const { +status_t FileSource::initCheck() const { return mFile != NULL ? OK : NO_INIT; } -ssize_t FileSource::read_at(off_t offset, void *data, size_t size) { +ssize_t FileSource::readAt(off_t offset, void *data, size_t size) { Mutex::Autolock autoLock(mLock); int err = fseeko(mFile, offset, SEEK_SET); |