summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/JPEGSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-10-23 10:22:30 -0700
committerAndreas Huber <andih@google.com>2009-10-23 10:35:08 -0700
commit34769bc913e9f6bb138e666d94a9d685bf3da217 (patch)
tree04de6901ea0132276789b671db83c2cccbee68c0 /media/libstagefright/JPEGSource.cpp
parent66326a5ee0869f1ee4d136a477e6effba428b3cb (diff)
downloadframeworks_av-34769bc913e9f6bb138e666d94a9d685bf3da217.zip
frameworks_av-34769bc913e9f6bb138e666d94a9d685bf3da217.tar.gz
frameworks_av-34769bc913e9f6bb138e666d94a9d685bf3da217.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/JPEGSource.cpp')
-rw-r--r--media/libstagefright/JPEGSource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/JPEGSource.cpp b/media/libstagefright/JPEGSource.cpp
index d1dfd83..a4be2dd 100644
--- a/media/libstagefright/JPEGSource.cpp
+++ b/media/libstagefright/JPEGSource.cpp
@@ -119,7 +119,7 @@ status_t JPEGSource::read(
MediaBuffer *buffer;
mGroup->acquire_buffer(&buffer);
- ssize_t n = mSource->read_at(mOffset, buffer->data(), mSize - mOffset);
+ ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset);
if (n <= 0) {
buffer->release();
@@ -156,13 +156,13 @@ status_t JPEGSource::parseJPEG() {
for (;;) {
uint8_t marker;
- if (mSource->read_at(i++, &marker, 1) != 1) {
+ if (mSource->readAt(i++, &marker, 1) != 1) {
return ERROR_IO;
}
CHECK_EQ(marker, 0xff);
- if (mSource->read_at(i++, &marker, 1) != 1) {
+ if (mSource->readAt(i++, &marker, 1) != 1) {
return ERROR_IO;
}