diff options
author | Andreas Huber <andih@google.com> | 2010-07-20 15:04:28 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-07-21 08:51:29 -0700 |
commit | 6624c9fd0bc5e3858a22a04c05b5059445c1c367 (patch) | |
tree | 009c6806cadd4a6da28f3d497043b9665a16f134 /media/libstagefright/AMRExtractor.cpp | |
parent | d7514ec6eb17d262d6f9605a2c2f245b7ad7c0b9 (diff) | |
download | frameworks_base-6624c9fd0bc5e3858a22a04c05b5059445c1c367.zip frameworks_base-6624c9fd0bc5e3858a22a04c05b5059445c1c367.tar.gz frameworks_base-6624c9fd0bc5e3858a22a04c05b5059445c1c367.tar.bz2 |
Support finer seek control on MediaSources.
related-to-bug: 2858448
Change-Id: Ifb4b13b990fd5889113e47e2c62249ac43391fa1
Diffstat (limited to 'media/libstagefright/AMRExtractor.cpp')
-rw-r--r-- | media/libstagefright/AMRExtractor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/AMRExtractor.cpp b/media/libstagefright/AMRExtractor.cpp index 0fea72e..9fc1d27 100644 --- a/media/libstagefright/AMRExtractor.cpp +++ b/media/libstagefright/AMRExtractor.cpp @@ -212,7 +212,8 @@ status_t AMRSource::read( *out = NULL; int64_t seekTimeUs; - if (options && options->getSeekTo(&seekTimeUs)) { + ReadOptions::SeekMode mode; + if (options && options->getSeekTo(&seekTimeUs, &mode)) { int64_t seekFrame = seekTimeUs / 20000ll; // 20ms per frame. mCurrentTimeUs = seekFrame * 20000ll; mOffset = seekFrame * mFrameSize + (mIsWide ? 9 : 6); |