Message ID | 20220604093025.77737-3-jacopo@jmondi.org |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp index 154e088e1b86..045e60061a20 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;