From a1c5450be573ebcb1a5acc6453b5fcfdaa9593a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 25 Nov 2019 17:51:06 +0100 Subject: libcamera: camera: Remove the prepared state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the FrameBuffer rework completed there is no reason to keep the camera prepared state around as buffer allocations are now decoupled from the camera state. Remove the camera state simplifying the API. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- test/camera/buffer_import.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'test/camera/buffer_import.cpp') diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp index f506d1b2..e7048335 100644 --- a/test/camera/buffer_import.cpp +++ b/test/camera/buffer_import.cpp @@ -174,11 +174,6 @@ protected: return TestFail; } - if (camera_->allocateBuffers()) { - std::cout << "Failed to allocate buffers" << std::endl; - return TestFail; - } - Stream *stream = cfg.stream(); BufferSource source; @@ -244,11 +239,6 @@ protected: return TestFail; } - if (camera_->freeBuffers()) { - std::cout << "Failed to free buffers" << std::endl; - return TestFail; - } - return TestPass; } -- cgit v1.2.1