diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-15 01:27:43 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-18 19:15:18 +0200 |
commit | 4ff18e95063bbb70f6e0971774fcd2a1b0ad2b58 (patch) | |
tree | f3562d679096cfb95a203fed3b61ff0bd3a88267 /test/camera | |
parent | 33fedea818e2b6a9ed68ac86acf194b1a2da8828 (diff) |
libcamera: framebuffer_allocator: Lift camera restrictions on allocator
The Camera class currently requires the allocator to have no allocated
buffer before the camera is reconfigured, and the allocator to be
destroyed before the camera is released. There's no basis for these
restrictions anymore, remove them.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/camera')
-rw-r--r-- | test/camera/capture.cpp | 2 | ||||
-rw-r--r-- | test/camera/statemachine.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp index b304d59c..f6b2f348 100644 --- a/test/camera/capture.cpp +++ b/test/camera/capture.cpp @@ -63,7 +63,7 @@ protected: return TestFail; } - allocator_ = FrameBufferAllocator::create(camera_); + allocator_ = new FrameBufferAllocator(camera_); return TestPass; } diff --git a/test/camera/statemachine.cpp b/test/camera/statemachine.cpp index 20541b3e..325b4674 100644 --- a/test/camera/statemachine.cpp +++ b/test/camera/statemachine.cpp @@ -117,7 +117,7 @@ protected: return TestFail; /* Use internally allocated buffers. */ - allocator_ = FrameBufferAllocator::create(camera_); + allocator_ = new FrameBufferAllocator(camera_); Stream *stream = *camera_->streams().begin(); if (allocator_->allocate(stream) < 0) return TestFail; |