diff options
author | Chong Zhang <chz@google.com> | 2014-09-14 14:28:45 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-09-16 13:26:18 -0700 |
commit | 48296b792a8d68358de74141fa80bd5bd84d0307 (patch) | |
tree | 56b46f8d4de2e87f8028a09fa2b8203625c01474 /media/libstagefright/include | |
parent | 83a23e1e1e45d9e2f5497e214796250f74aad1d4 (diff) | |
download | frameworks_av-48296b792a8d68358de74141fa80bd5bd84d0307.zip frameworks_av-48296b792a8d68358de74141fa80bd5bd84d0307.tar.gz frameworks_av-48296b792a8d68358de74141fa80bd5bd84d0307.tar.bz2 |
Disconnect HTTP-based data source upon reset
Bug: 17425250
Change-Id: Ieb4c93fd9848489f9dbf35a36474376924fd8eb9
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/NuCachedSource2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/include/NuCachedSource2.h b/media/libstagefright/include/NuCachedSource2.h index 5db4b4b..4252706 100644 --- a/media/libstagefright/include/NuCachedSource2.h +++ b/media/libstagefright/include/NuCachedSource2.h @@ -37,6 +37,8 @@ struct NuCachedSource2 : public DataSource { virtual ssize_t readAt(off64_t offset, void *data, size_t size); + virtual void disconnect(); + virtual status_t getSize(off64_t *size); virtual uint32_t flags(); @@ -103,6 +105,7 @@ private: off64_t mLastAccessPos; sp<AMessage> mAsyncResult; bool mFetching; + bool mDisconnecting; int64_t mLastFetchTimeUs; int32_t mNumRetriesLeft; |