summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-07-01 16:48:18 -0700
committerLajos Molnar <lajos@google.com>2015-07-16 17:23:36 -0700
commit08dc42c46c942ff316a69be1cf74f3c60cf53e7f (patch)
tree80669f21f0c2b8dfcf10efc989f4d6f40f401159 /include
parenta3725d7b0cb79ddb49f81cba00a0164d8e645acd (diff)
downloadframeworks_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.h4
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;