diff options
author | Andreas Huber <andih@google.com> | 2009-11-19 11:22:36 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-11-19 11:24:18 -0800 |
commit | d66a901e6a932e62358ee963831e663a8c655b8e (patch) | |
tree | 0a93a1a9a8ccef2299c00fc70622b0f80b3d0b87 /include | |
parent | e4260f4e7da4da32bfab2737018cf9cf75215894 (diff) | |
download | frameworks_base-d66a901e6a932e62358ee963831e663a8c655b8e.zip frameworks_base-d66a901e6a932e62358ee963831e663a8c655b8e.tar.gz frameworks_base-d66a901e6a932e62358ee963831e663a8c655b8e.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.h | 4 |
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); |