diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:51:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:51:09 +0200 |
| commit | afa092638250c72a92136b0b440bb6bb7c070702 (patch) | |
| tree | bbcfbb05b7e3f53ca70aece49474a94343c58ccd /src/wx/content_view.cc | |
| parent | 6f23f3ff80fbd73cdaf183ce8bbdeeea0007ad6b (diff) | |
Add contains_assetmap()
Diffstat (limited to 'src/wx/content_view.cc')
| -rw-r--r-- | src/wx/content_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/content_view.cc b/src/wx/content_view.cc index 468b3bf97..73cc9e68b 100644 --- a/src/wx/content_view.cc +++ b/src/wx/content_view.cc @@ -28,6 +28,7 @@ #include "lib/dcpomatic_assert.h" #include "lib/examine_content_job.h" #include "lib/job_manager.h" +#include "lib/util.h" #include <dcp/exceptions.h> #include <dcp/warnings.h> #include <boost/filesystem.hpp> @@ -94,7 +95,7 @@ ContentView::update () progress.Pulse (); shared_ptr<Content> content; - if (is_directory(i) && (is_regular_file(i / "ASSETMAP") || is_regular_file(i / "ASSETMAP.xml"))) { + if (is_directory(i) && contains_assetmap(i)) { content = make_shared<DCPContent>(i); } else if (i.path().extension() == ".mp4") { auto all_content = content_factory(i); |
