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/WAVExtractor.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/WAVExtractor.cpp')
-rw-r--r-- | media/libstagefright/WAVExtractor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/WAVExtractor.cpp b/media/libstagefright/WAVExtractor.cpp index 7365dfa..7c2b07e 100644 --- a/media/libstagefright/WAVExtractor.cpp +++ b/media/libstagefright/WAVExtractor.cpp @@ -282,7 +282,8 @@ status_t WAVSource::read( *out = NULL; int64_t seekTimeUs; - if (options != NULL && options->getSeekTo(&seekTimeUs)) { + ReadOptions::SeekMode mode; + if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * 2; if (pos > mSize) { pos = mSize; |