diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-01 16:53:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-01 16:53:21 +0100 |
| commit | 921b3573e25c42ef3e490c00beee07605c9a0a46 (patch) | |
| tree | 217fb4410cd8794b7e599a5d6000d457599a2600 /src | |
| parent | 9b980858ef57ca7ff712e3090b5ec94f49964230 (diff) | |
Use error-catching method to find potential DCPs (#2982).
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_verifier.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_verifier.cc b/src/tools/dcpomatic_verifier.cc index c8f9d8c8d..55c1387f2 100644 --- a/src/tools/dcpomatic_verifier.cc +++ b/src/tools/dcpomatic_verifier.cc @@ -37,6 +37,7 @@ #include "lib/job_manager.h" #include "lib/verify_dcp_job.h" #include "lib/util.h" +#include <dcp/search.h> #include <dcp/verify_report.h> LIBDCP_DISABLE_WARNINGS #include <wx/evtloop.h> @@ -68,9 +69,7 @@ public: vector<boost::filesystem::path> get() const { - vector<boost::filesystem::path> dcp; - search(dcp, boost::filesystem::path(wx_to_std(GetPath()))); - return dcp; + return dcp::find_potential_dcps(boost::filesystem::path(wx_to_std(GetPath()))); } void set(boost::filesystem::path) |
