From 3b35cb7736afb963e3941710d61c2c9849d35007 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Mon, 7 Apr 2014 13:37:50 -0700 Subject: Remove deprecated BufferQueue constructor Bug: 13415624 Change-Id: I16e874c376d2f84d270f6a8c733618719cf49901 --- cmds/stagefright/stagefright.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cmds') 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 bq = new BufferQueue(); - sp texture = new GLConsumer(bq, 0 /* tex */); - gSurface = new Surface(bq); + sp producer; + sp consumer; + BufferQueue::createBufferQueue(&producer, &consumer); + sp texture = new GLConsumer(consumer, 0 /* tex */); + gSurface = new Surface(producer); } CHECK_EQ((status_t)OK, -- cgit v1.1