summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-11-19 11:22:36 -0800
committerAndreas Huber <andih@google.com>2009-11-19 11:24:18 -0800
commit2f5925e123afdaba79c7ca8ef6647e4b86cd5488 (patch)
tree994ce4cc1ddd2b37ea86944fcb04b2d69ac0d138 /include
parent583892d0185d102f3c9ca69ea48fe38af31ecd31 (diff)
downloadframeworks_av-2f5925e123afdaba79c7ca8ef6647e4b86cd5488.zip
frameworks_av-2f5925e123afdaba79c7ca8ef6647e4b86cd5488.tar.gz
frameworks_av-2f5925e123afdaba79c7ca8ef6647e4b86cd5488.tar.bz2
DO NOT MERGE: Instead of inserting semi-random delays after submission to surface flinger, delay releasing buffers to the next display time to avoid flickering.
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaPlayerImpl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/stagefright/MediaPlayerImpl.h b/include/media/stagefright/MediaPlayerImpl.h
index 53a2088..7adf836 100644
--- a/include/media/stagefright/MediaPlayerImpl.h
+++ b/include/media/stagefright/MediaPlayerImpl.h
@@ -112,7 +112,9 @@ private:
MediaSource *makeShoutcastSource(const char *path);
- void displayOrDiscardFrame(MediaBuffer *buffer, int64_t pts_us);
+ void displayOrDiscardFrame(
+ MediaBuffer **lastBuffer, MediaBuffer *buffer, int64_t pts_us);
+
void populateISurface();
void depopulateISurface();
void sendFrameToISurface(MediaBuffer *buffer);