summaryrefslogtreecommitdiff
path: root/src/android/camera_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_request.cpp')
-rw-r--r--src/android/camera_request.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/android/camera_request.cpp b/src/android/camera_request.cpp
index 16a632b3..614baed4 100644
--- a/src/android/camera_request.cpp
+++ b/src/android/camera_request.cpp
@@ -23,15 +23,10 @@ Camera3RequestDescriptor::Camera3RequestDescriptor(
/* Copy the camera3 request stream information for later access. */
const uint32_t numBuffers = camera3Request->num_output_buffers;
+
buffers_.resize(numBuffers);
for (uint32_t i = 0; i < numBuffers; i++)
- buffers_[i] = camera3Request->output_buffers[i];
-
- /*
- * FrameBuffer instances created by wrapping a camera3 provided dmabuf
- * are emplaced in this vector of unique_ptr<> for lifetime management.
- */
- frameBuffers_.reserve(numBuffers);
+ buffers_[i].buffer = camera3Request->output_buffers[i];
/* Clone the controls associated with the camera3 request. */
settings_ = CameraMetadata(camera3Request->settings);