HACK: android: Set cfg.bufferCount to some value
Otherwise Android framework will fail to configure camera. Change-Id: I8d89a8ae52b248781c1fce9e890d3a6fc258e4f4 Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
This commit is contained in:
committed by
Konsta
parent
91d99ba46e
commit
2a1ba049b9
@@ -132,6 +132,9 @@ int CameraStream::configure()
|
||||
mutex_ = std::make_unique<Mutex>();
|
||||
|
||||
camera3Stream_->max_buffers = configuration().bufferCount;
|
||||
// Android requires at least one buffer
|
||||
if (camera3Stream_->max_buffers == 0)
|
||||
camera3Stream_->max_buffers = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user