summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/SurfaceMediaSource.cpp
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-03-12 15:19:45 -0700
committerDan Stoza <stoza@google.com>2015-03-12 15:23:16 -0700
commit8ed8ceda7cfe29e8417142ef460cd70060204459 (patch)
tree27786b1942ec93ee3ddaaefe307bc02673755df7 /media/libstagefright/SurfaceMediaSource.cpp
parent3f27436a9346f043f52265da1e6a74cde2bffd4d (diff)
downloadframeworks_av-8ed8ceda7cfe29e8417142ef460cd70060204459.zip
frameworks_av-8ed8ceda7cfe29e8417142ef460cd70060204459.tar.gz
frameworks_av-8ed8ceda7cfe29e8417142ef460cd70060204459.tar.bz2
libstagefright: Stop using IGBC::BufferItem
Switches all uses of IGraphicBufferConsumer::BufferItem (and BufferQueue::BufferItem) to the BufferItem in libgui. Depends on frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9. This is a member of I187b3a7d05196b6289596afac8fb9a9d4aebff76, but since it was split out from the camera change in frameworks/av, they have to have different change IDs. Change-Id: I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc
Diffstat (limited to 'media/libstagefright/SurfaceMediaSource.cpp')
-rw-r--r--media/libstagefright/SurfaceMediaSource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/SurfaceMediaSource.cpp b/media/libstagefright/SurfaceMediaSource.cpp
index 530383b..e8abf48 100644
--- a/media/libstagefright/SurfaceMediaSource.cpp
+++ b/media/libstagefright/SurfaceMediaSource.cpp
@@ -26,6 +26,7 @@
#include <media/hardware/MetadataBufferType.h>
#include <ui/GraphicBuffer.h>
+#include <gui/BufferItem.h>
#include <gui/ISurfaceComposer.h>
#include <gui/IGraphicBufferAlloc.h>
#include <OMX_Component.h>
@@ -290,7 +291,7 @@ status_t SurfaceMediaSource::read(
// TODO: mCurrentSlot can be made a bufferstate since there
// can be more than one "current" slots.
- BufferQueue::BufferItem item;
+ BufferItem item;
// If the recording has started and the queue is empty, then just
// wait here till the frames come in from the client side
while (mStarted) {