summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-04-07 13:37:50 -0700
committerDan Stoza <stoza@google.com>2014-04-07 13:37:50 -0700
commit3b35cb7736afb963e3941710d61c2c9849d35007 (patch)
tree5339de455e7b98031180a06ff33e014715002c1d /cmds/stagefright
parentc51db0a6bfb71ea9c934fb7971cb5ae1f1cf03a0 (diff)
downloadframeworks_av-3b35cb7736afb963e3941710d61c2c9849d35007.zip
frameworks_av-3b35cb7736afb963e3941710d61c2c9849d35007.tar.gz
frameworks_av-3b35cb7736afb963e3941710d61c2c9849d35007.tar.bz2
Remove deprecated BufferQueue constructor
Bug: 13415624 Change-Id: I16e874c376d2f84d270f6a8c733618719cf49901
Diffstat (limited to 'cmds/stagefright')
-rw-r--r--cmds/stagefright/stagefright.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index daaea27..6b41fd4 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -941,9 +941,11 @@ int main(int argc, char **argv) {
} else {
CHECK(useSurfaceTexAlloc);
- sp<BufferQueue> bq = new BufferQueue();
- sp<GLConsumer> texture = new GLConsumer(bq, 0 /* tex */);
- gSurface = new Surface(bq);
+ sp<IGraphicBufferProducer> producer;
+ sp<IGraphicBufferConsumer> consumer;
+ BufferQueue::createBufferQueue(&producer, &consumer);
+ sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */);
+ gSurface = new Surface(producer);
}
CHECK_EQ((status_t)OK,