diff options
author | Chong Zhang <chz@google.com> | 2015-03-03 19:32:35 -0800 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2015-03-10 14:43:10 -0700 |
commit | 66704af4d82c2b6303609b29402641f861fdcb19 (patch) | |
tree | d0e4590f29767a93b3abed762f04e2f41eba2928 /media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h | |
parent | d4db9dcd7d29234893d580c329f23242197fe664 (diff) | |
download | frameworks_av-66704af4d82c2b6303609b29402641f861fdcb19.zip frameworks_av-66704af4d82c2b6303609b29402641f861fdcb19.tar.gz frameworks_av-66704af4d82c2b6303609b29402641f861fdcb19.tar.bz2 |
NuPlayer: play out pending frames on discontinuity
bug: 19567254
Change-Id: Iff689e1eea54283095068d68bcdff4c2674af554
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h index a6e1faf..173cfbd 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h @@ -43,7 +43,7 @@ protected: virtual void onSetRenderer(const sp<Renderer> &renderer); virtual void onGetInputBuffers(Vector<sp<ABuffer> > *dstBuffers); virtual void onResume(bool notifyComplete); - virtual void onFlush(bool notifyComplete); + virtual void onFlush(); virtual void onShutdown(bool notifyComplete); virtual void doRequestBuffers(); @@ -77,6 +77,7 @@ private: status_t dequeueAccessUnit(sp<ABuffer> *accessUnit); sp<ABuffer> aggregateBuffer(const sp<ABuffer> &accessUnit); status_t fetchInputData(sp<AMessage> &reply); + void doFlush(bool notifyComplete); void onInputBufferFetched(const sp<AMessage> &msg); void onBufferConsumed(int32_t size); |