diff options
author | Andreas Huber <andih@google.com> | 2010-10-15 08:38:49 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-15 08:38:49 -0700 |
commit | 6da2ae11b62f155ee83c3e31fdd9cc53b2058586 (patch) | |
tree | 5c3cb0a3a8d1cbc4a91b84feecc454f21c0eecc3 /media | |
parent | c1e7b2182594aa0463c4a738cc8e7eea6777ef50 (diff) | |
download | frameworks_base-6da2ae11b62f155ee83c3e31fdd9cc53b2058586.zip frameworks_base-6da2ae11b62f155ee83c3e31fdd9cc53b2058586.tar.gz frameworks_base-6da2ae11b62f155ee83c3e31fdd9cc53b2058586.tar.bz2 |
Make sure we cache the sampleTable again if using the caching datasource.
QA-impact: This fixes http streaming again which I broke about 2 days ago. The previously observed symptoms were stuttering playback of http streams (think YouTube) after a certain playback position.
Change-Id: I14050e3522ecd62c90d29310efdf508fdd2e87b5
related-to-bug: 3098873
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/MPEG4Extractor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/MPEG4Extractor.cpp index 4bbc251..f404708 100644 --- a/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/MPEG4Extractor.cpp @@ -498,7 +498,9 @@ status_t MPEG4Extractor::parseChunk(off_t *offset, int depth) { if (chunk_type == FOURCC('s', 't', 'b', 'l')) { LOGV("sampleTable chunk is %d bytes long.", (size_t)chunk_size); - if (mDataSource->flags() & DataSource::kWantsPrefetching) { + if (mDataSource->flags() + & (DataSource::kWantsPrefetching + | DataSource::kIsCachingDataSource)) { sp<MPEG4DataSource> cachedSource = new MPEG4DataSource(mDataSource); |