From f0f4dd5e6b6ed5e50d0444a4de3b2a13156edf64 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 6 Oct 2023 02:37:16 +0200 Subject: Use dcp::filesystem to wrap filesystem calls and fix_long_path anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems. --- src/lib/image_examiner.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/image_examiner.cc') diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 6e4dea7b7..ac2c95a08 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -31,6 +31,7 @@ #include "job.h" #include #include +#include #include #include @@ -50,7 +51,7 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrpath(0); if (valid_j2k_file (path)) { - auto size = boost::filesystem::file_size (path); + auto size = dcp::filesystem::file_size(path); dcp::File f(path, "rb"); if (!f) { throw FileError ("Could not open file for reading", path); -- cgit v1.2.3