summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2014-12-01 15:33:36 -0800
committerRonghua Wu <ronghuawu@google.com>2014-12-01 16:21:07 -0800
commitf1828910d48bbd22e1392e6ab0ce31298d1f115c (patch)
tree752ea9f31459d6b2572fa1721ca4edea612e759f /media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h
parentd8731629bed46ff573b1ef904e5366d28f23dc0a (diff)
downloadframeworks_av-f1828910d48bbd22e1392e6ab0ce31298d1f115c.zip
frameworks_av-f1828910d48bbd22e1392e6ab0ce31298d1f115c.tar.gz
frameworks_av-f1828910d48bbd22e1392e6ab0ce31298d1f115c.tar.bz2
nuplayer: clear pending audio access unit on flush.
Also add flag to avoid reading on flush. Bug: 18540219 Change-Id: I2fc351c32c87db9a8c8c2aad12ee2bd56a0370ab
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h
index d761b07..37b28c8 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h
@@ -56,6 +56,7 @@ private:
sp<Source> mSource;
sp<Renderer> mRenderer;
int64_t mSkipRenderingUntilMediaTimeUs;
+ bool mPaused;
int32_t mBufferGeneration;
bool mReachedEOS;
@@ -73,7 +74,7 @@ private:
AString mComponentName;
bool isStaleReply(const sp<AMessage> &msg);
- bool isCacheFullOrEOS() const;
+ bool isDoneFetching() const;
status_t dequeueAccessUnit(sp<ABuffer> *accessUnit);
sp<ABuffer> aggregateBuffer(const sp<ABuffer> &accessUnit);