summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-12 22:06:20 -0700
committerMathias Agopian <mathias@google.com>2013-07-12 22:06:20 -0700
commit8d764bfc74c40641f018a0aa87d6f484aec92eae (patch)
tree1418445850d4b3d44ab521722639494b33df27f5 /cmds
parentce177bb31493d3cd4450f9d4760fa1fd32ec6bf4 (diff)
downloadframeworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.zip
frameworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.tar.gz
frameworks_av-8d764bfc74c40641f018a0aa87d6f484aec92eae.tar.bz2
always pass the BufferQueue explicitely to consumers
Change-Id: Ic2d9a9cf184a482b3c78a481ed693ee32df5ca13
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp3
1 files changed, 2 insertions, 1 deletions
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<GLConsumer> texture = new GLConsumer(0 /* tex */);
+ sp<BufferQueue> bq = new BufferQueue();
+ sp<GLConsumer> texture = new GLConsumer(bq, 0 /* tex */);
gSurface = new Surface(texture->getBufferQueue());
}