diff options
author | Bryan Mawhinney <bryanmawhinney@google.com> | 2011-01-18 19:12:21 +0000 |
---|---|---|
committer | Bryan Mawhinney <bryanmawhinney@google.com> | 2011-01-18 19:12:21 +0000 |
commit | 1bd233ce7e1aa7730bc18d46ffd57791391738cd (patch) | |
tree | f260f0d8821d1f36fbfcf9f678fb80f62ec099b9 /media/libstagefright/include/NuCachedSource2.h | |
parent | ccb3506ed1845121b94f4e27244e61a46eb19815 (diff) | |
download | frameworks_av-1bd233ce7e1aa7730bc18d46ffd57791391738cd.zip frameworks_av-1bd233ce7e1aa7730bc18d46ffd57791391738cd.tar.gz frameworks_av-1bd233ce7e1aa7730bc18d46ffd57791391738cd.tar.bz2 |
Don't report 100% buffered when the stream ends prematurely.
Change-Id: Ia4e80d02f28104427a3309e3d5b155faa5702757
Diffstat (limited to 'media/libstagefright/include/NuCachedSource2.h')
-rw-r--r-- | media/libstagefright/include/NuCachedSource2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/include/NuCachedSource2.h b/media/libstagefright/include/NuCachedSource2.h index aa320fc..28840be 100644 --- a/media/libstagefright/include/NuCachedSource2.h +++ b/media/libstagefright/include/NuCachedSource2.h @@ -43,7 +43,7 @@ struct NuCachedSource2 : public DataSource { //////////////////////////////////////////////////////////////////////////// size_t cachedSize(); - size_t approxDataRemaining(bool *eos); + size_t approxDataRemaining(status_t *finalStatus); void resumeFetchingIfNecessary(); @@ -92,7 +92,7 @@ private: ssize_t readInternal(off64_t offset, void *data, size_t size); status_t seekInternal_l(off64_t offset); - size_t approxDataRemaining_l(bool *eos); + size_t approxDataRemaining_l(status_t *finalStatus); void restartPrefetcherIfNecessary_l(bool ignoreLowWaterThreshold = false); DISALLOW_EVIL_CONSTRUCTORS(NuCachedSource2); |