mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 17:35:06 +03:00
ipa: raspberryip: Remove all exception throw statements
Replace all exception throw statements with LOG(RPi*, Fatal) error messages. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
f95bae418c
commit
8757cc7c42
6 changed files with 34 additions and 48 deletions
|
@ -40,7 +40,7 @@ void Geq::read(boost::property_tree::ptree const ¶ms)
|
|||
config_.offset = params.get<uint16_t>("offset", 0);
|
||||
config_.slope = params.get<double>("slope", 0.0);
|
||||
if (config_.slope < 0.0 || config_.slope >= 1.0)
|
||||
throw std::runtime_error("Geq: bad slope value");
|
||||
LOG(RPiGeq, Fatal) << "Geq: bad slope value";
|
||||
if (params.get_child_optional("strength"))
|
||||
config_.strength.read(params.get_child("strength"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue