[libcamera-devel] [libcamera-devel, v3, 0/1] libcamera: converter: Check converter validity
Suhrid Subramaniam
suhridsubramaniam at gmail.com
Thu Mar 2 20:06:28 CET 2023
- In cases where ConverterFactoryBase::create returns a nullptr,
converter_->isValid() causes a segmentation fault.
- Solve this by checking if converter_ is a nullptr.
- Additionally, check for converter validity in the create function itself
and return a nullptr if the converter is invalid.
Suhrid Subramaniam (1):
libcamera: converter: Check converter validity
src/libcamera/converter.cpp | 3 ++-
src/libcamera/pipeline/simple/simple.cpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
--
2.39.0
More information about the libcamera-devel
mailing list