From 19698ea27c826a1daefe4e396ba7eb58da850b25 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 9 Oct 2024 13:07:38 +0200 Subject: [HACK] cam: Do not allocate buffers or queue requests Signed-off-by: Jacopo Mondi --- src/apps/cam/camera_session.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp index edc49b87..907c6074 100644 --- a/src/apps/cam/camera_session.cpp +++ b/src/apps/cam/camera_session.cpp @@ -307,6 +307,7 @@ int CameraSession::startCapture() { int ret; +#if 0 /* Identify the stream with the least number of buffers. */ unsigned int nbuffers = UINT_MAX; for (StreamConfiguration &cfg : *config_) { @@ -351,6 +352,7 @@ int CameraSession::startCapture() requests_.push_back(std::move(request)); } +#endif if (sink_) { ret = sink_->start(); @@ -368,6 +370,7 @@ int CameraSession::startCapture() return ret; } +#if 0 for (std::unique_ptr &request : requests_) { ret = queueRequest(request.get()); if (ret < 0) { @@ -387,6 +390,7 @@ int CameraSession::startCapture() std::cout << "cam" << cameraIndex_ << ": Capture until user interrupts by SIGINT" << std::endl; +#endif return 0; } -- cgit v1.2.1