diff options
author | Lajos Molnar <lajos@google.com> | 2015-07-01 16:48:18 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-07-16 17:23:36 -0700 |
commit | 08dc42c46c942ff316a69be1cf74f3c60cf53e7f (patch) | |
tree | 80669f21f0c2b8dfcf10efc989f4d6f40f401159 /include | |
parent | a3725d7b0cb79ddb49f81cba00a0164d8e645acd (diff) | |
download | frameworks_av-08dc42c46c942ff316a69be1cf74f3c60cf53e7f.zip frameworks_av-08dc42c46c942ff316a69be1cf74f3c60cf53e7f.tar.gz frameworks_av-08dc42c46c942ff316a69be1cf74f3c60cf53e7f.tar.bz2 |
stagefright: flush pending video frames for MediaSync
Bug: 22234976
Change-Id: Ib63c2286610181968658fb38f5526a489635cf3e
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MediaSync.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaSync.h b/include/media/stagefright/MediaSync.h index 1b7d7e8..4b5cd05 100644 --- a/include/media/stagefright/MediaSync.h +++ b/include/media/stagefright/MediaSync.h @@ -104,6 +104,9 @@ public: // MediaClock::getMediaTime() and MediaClock::getRealTimeFor(). sp<const MediaClock> getMediaClock(); + // Flush mediasync + void flush(); + // Set the video frame rate hint - this is used by the video FrameScheduler status_t setVideoFrameRateHint(float rate); @@ -195,6 +198,7 @@ private: sp<IGraphicBufferProducer> mOutput; int mUsageFlagsFromOutput; uint32_t mMaxAcquiredBufferCount; // max acquired buffer count + bool mReturnPendingInputFrame; // set while we are pending before acquiring an input frame sp<AudioTrack> mAudioTrack; uint32_t mNativeSampleRateInHz; |