diff options
Diffstat (limited to 'src/apps/cam/file_sink.cpp')
-rw-r--r-- | src/apps/cam/file_sink.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/apps/cam/file_sink.cpp b/src/apps/cam/file_sink.cpp index 9d60c04e..4dfacc10 100644 --- a/src/apps/cam/file_sink.cpp +++ b/src/apps/cam/file_sink.cpp @@ -21,10 +21,14 @@ using namespace libcamera; -FileSink::FileSink(const libcamera::Camera *camera, +FileSink::FileSink([[maybe_unused]] const libcamera::Camera *camera, const std::map<const libcamera::Stream *, std::string> &streamNames, const std::string &pattern) - : camera_(camera), streamNames_(streamNames), pattern_(pattern) + : +#ifdef HAVE_TIFF + camera_(camera), +#endif + streamNames_(streamNames), pattern_(pattern) { } |