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 --- camera/ProCamera.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camera/ProCamera.cpp') diff --git a/camera/ProCamera.cpp b/camera/ProCamera.cpp index fec5461..190402e 100644 --- a/camera/ProCamera.cpp +++ b/camera/ProCamera.cpp @@ -247,7 +247,8 @@ status_t ProCamera::createStreamCpu(int width, int height, int format, sp c = mCamera; if (c == 0) return NO_INIT; - sp cc = new CpuConsumer(heapCount, synchronousMode); + sp bq = new BufferQueue(); + sp cc = new CpuConsumer(bq, heapCount, synchronousMode); cc->setName(String8("ProCamera::mCpuConsumer")); sp stc = new Surface( -- cgit v1.1