summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-04-19 16:25:20 -0700
committerAndreas Huber <andih@google.com>2012-04-19 16:53:42 -0700
commita53d87c7b1428fe02f535c31dafd64cb1362fde9 (patch)
tree91d1c0a816d28e2b4103522753119ae0b7b5a3e5 /media/libstagefright/include
parent8d6086781c79620ce6133df7bd27f0efdee6b4e6 (diff)
downloadframeworks_av-a53d87c7b1428fe02f535c31dafd64cb1362fde9.zip
frameworks_av-a53d87c7b1428fe02f535c31dafd64cb1362fde9.tar.gz
frameworks_av-a53d87c7b1428fe02f535c31dafd64cb1362fde9.tar.bz2
Add the ability to query the amount of cached data to NuMediaExtractor.
Change-Id: I0966270a2bd36698330beaa03f47d02fc6a40c44 related-to-bug: 6364341
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/NuCachedSource2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/include/NuCachedSource2.h b/media/libstagefright/include/NuCachedSource2.h
index c27a29b..5db4b4b 100644
--- a/media/libstagefright/include/NuCachedSource2.h
+++ b/media/libstagefright/include/NuCachedSource2.h
@@ -49,7 +49,7 @@ struct NuCachedSource2 : public DataSource {
////////////////////////////////////////////////////////////////////////////
size_t cachedSize();
- size_t approxDataRemaining(status_t *finalStatus);
+ size_t approxDataRemaining(status_t *finalStatus) const;
void resumeFetchingIfNecessary();
@@ -94,7 +94,7 @@ private:
sp<ALooper> mLooper;
Mutex mSerializer;
- Mutex mLock;
+ mutable Mutex mLock;
Condition mCondition;
PageCache *mCache;
@@ -123,7 +123,7 @@ private:
ssize_t readInternal(off64_t offset, void *data, size_t size);
status_t seekInternal_l(off64_t offset);
- size_t approxDataRemaining_l(status_t *finalStatus);
+ size_t approxDataRemaining_l(status_t *finalStatus) const;
void restartPrefetcherIfNecessary_l(
bool ignoreLowWaterThreshold = false, bool force = false);