From 96fc6cc65ca93009a759a3a874b82a35771b9714 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 28 Sep 2012 10:23:51 -0700 Subject: Various improvements to a cleaner shutdown of the wifi display connection. Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239 related-to-bug: 7247918 --- include/media/stagefright/SurfaceMediaSource.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/media') diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 9e07ea4..f60a535 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -52,6 +52,8 @@ class GraphicBuffer; // may be dropped. It is possible to wait for the buffers to be // returned (but not implemented) +#define DEBUG_PENDING_BUFFERS 0 + class SurfaceMediaSource : public MediaSource, public MediaBufferObserver, protected BufferQueue::ConsumerListener { @@ -169,6 +171,10 @@ private: size_t mNumPendingBuffers; +#if DEBUG_PENDING_BUFFERS + Vector mPendingBuffers; +#endif + // mCurrentTimestamp is the timestamp for the current texture. It // gets set to mLastQueuedTimestamp each time updateTexImage is called. int64_t mCurrentTimestamp; -- cgit v1.1