diff options
author | Lajos Molnar <lajos@google.com> | 2014-07-17 14:17:09 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-07-17 15:46:03 -0700 |
commit | 8eebda045d865c2e23fc439e87fe915467812967 (patch) | |
tree | 95359b8c70afd186bf1ffa7907c398811dda2987 /include/media/stagefright/MediaSource.h | |
parent | 91be1fbc424035e70688e60306b755893e0fb0ae (diff) | |
download | frameworks_av-8eebda045d865c2e23fc439e87fe915467812967.zip frameworks_av-8eebda045d865c2e23fc439e87fe915467812967.tar.gz frameworks_av-8eebda045d865c2e23fc439e87fe915467812967.tar.bz2 |
stagefright: add nonblocking read option to MediaBuffer
Bug: 15699665
Change-Id: I2aaddc4c937cf5c1e36386bafd7d396d5781bf6d
Diffstat (limited to 'include/media/stagefright/MediaSource.h')
-rw-r--r-- | include/media/stagefright/MediaSource.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaSource.h b/include/media/stagefright/MediaSource.h index 204d1c6..a653db9 100644 --- a/include/media/stagefright/MediaSource.h +++ b/include/media/stagefright/MediaSource.h @@ -82,6 +82,10 @@ struct MediaSource : public virtual RefBase { void setLateBy(int64_t lateness_us); int64_t getLateBy() const; + void setNonBlocking(); + void clearNonBlocking(); + bool getNonBlocking() const; + private: enum Options { kSeekTo_Option = 1, @@ -91,6 +95,7 @@ struct MediaSource : public virtual RefBase { int64_t mSeekTimeUs; SeekMode mSeekMode; int64_t mLatenessUs; + bool mNonBlocking; }; // Causes this source to suspend pulling data from its upstream source |