From 66e72bc85fb762876baff60ef29de729da93cf26 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 4 Sep 2012 16:30:49 -0700 Subject: Configure the SurfaceMediaSource to emit the same number of buffers as the video encoder allocates for its input. Do this before connecting the bufferqueue through surface flinger. Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc --- include/media/stagefright/SurfaceMediaSource.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 724c68d..840b4aa 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -111,6 +111,9 @@ public: sp getBufferQueue() const { return mBufferQueue; } + // To be called before start() + status_t setMaxAcquiredBufferCount(size_t count); + protected: // Implementation of the BufferQueue::ConsumerListener interface. These -- cgit v1.1