From 8d764bfc74c40641f018a0aa87d6f484aec92eae Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 12 Jul 2013 22:06:20 -0700 Subject: always pass the BufferQueue explicitely to consumers Change-Id: Ic2d9a9cf184a482b3c78a481ed693ee32df5ca13 --- cmds/stagefright/stagefright.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmds/stagefright') diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index f8fc8ed..529b96c 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -937,7 +937,8 @@ int main(int argc, char **argv) { } else { CHECK(useSurfaceTexAlloc); - sp texture = new GLConsumer(0 /* tex */); + sp bq = new BufferQueue(); + sp texture = new GLConsumer(bq, 0 /* tex */); gSurface = new Surface(texture->getBufferQueue()); } -- cgit v1.1