X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_content.cc;h=1a92c944ed8047cdceb50f7f43b46e894923a323;hb=027a6534067edc6fe9390d9ecc750e9982d5437c;hp=d8f482a3b3bcc63c38dac6264b86910cf0bfe8bc;hpb=eeaca1992aa117fe3a2a4a079d8a20a01d88e933;p=dcpomatic.git diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index d8f482a3b..1a92c944e 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -27,8 +27,10 @@ #include "image_examiner.h" #include "image_filename_sorter.h" #include "job.h" +#include "util.h" #include "video_content.h" #include +#include #include #include @@ -48,7 +50,7 @@ ImageContent::ImageContent (boost::filesystem::path p) { video = make_shared(this); - if (boost::filesystem::is_regular_file (p) && valid_image_file (p)) { + if (dcp::filesystem::is_regular_file(p) && valid_image_file(p)) { add_path (p); } else { _path_to_scan = p; @@ -115,8 +117,8 @@ ImageContent::examine (shared_ptr film, shared_ptr job) job->sub (_("Scanning image files")); vector paths; int n = 0; - for (auto i: boost::filesystem::directory_iterator(*_path_to_scan)) { - if (boost::filesystem::is_regular_file(i.path()) && valid_image_file (i.path())) { + for (auto i: dcp::filesystem::directory_iterator(*_path_to_scan)) { + if (dcp::filesystem::is_regular_file(i.path()) && valid_image_file(i.path())) { paths.push_back (i.path()); } ++n; @@ -136,7 +138,7 @@ ImageContent::examine (shared_ptr film, shared_ptr job) Content::examine (film, job); auto examiner = make_shared(film, shared_from_this(), job); - video->take_from_examiner (examiner); + video->take_from_examiner(film, examiner); set_default_colour_conversion (); }