summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/camera_stream.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
index 154e088e..045e6006 100644
--- a/src/android/camera_stream.cpp
+++ b/src/android/camera_stream.cpp
@@ -128,10 +128,8 @@ int CameraStream::configure()
worker_->start();
}
- if (type_ == Type::Internal) {
- allocator_ = std::make_unique<PlatformFrameBufferAllocator>(cameraDevice_);
- mutex_ = std::make_unique<Mutex>();
- }
+ allocator_ = std::make_unique<PlatformFrameBufferAllocator>(cameraDevice_);
+ mutex_ = std::make_unique<Mutex>();
camera3Stream_->max_buffers = configuration().bufferCount;