summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/simple/simple.cpp9
1 files changed, 8 insertions, 1 deletions
/* SPDX-License-Identifier: BSD-2-Clause *//* * Copyright (C) 2019-2020, Raspberry Pi (Trading) Limited * * logging.hpp - logging macros */#pragma once#include <iostream>tree/src/libcamera/pipeline/simple/simple.cpp?h=v0.0.1&id=535820fe51ac9881ae3562ffd4a69ef3359f85f6'>src/libcamera/pipeline/simple/simple.cpp
@@ -341,8 +341,15 @@ SimpleCameraData::SimpleCameraData(SimplePipelineHandler *pipe,
/* Finally also remember the sensor. */
sensor_ = std::make_unique<CameraSensor>(sensor);
ret = sensor_->init();
- if (ret)
+ if (ret) {
sensor_.reset();
+ return;
+ }
+
+ LOG(SimplePipeline, Debug)
+ << "Found pipeline: "
+ << utils::join(entities_, " -> ",
+ [](const Entity &e) { return e.entity->name(); });
}
int SimpleCameraData::init()
c"> std::cout << __FUNCTION__ << " ***WARNING*** " \ << stuff << "\n"; \ } while (0)