summaryrefslogtreecommitdiff
path: root/tools/dcpinfo.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-06 02:04:49 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-09 01:20:01 +0200
commite4b2ebd80779a44d24fe87af26ef278c1e2d97d2 (patch)
tree3bc940c5eb49c96c3c18a896c8ccd8039e6db839 /tools/dcpinfo.cc
parent3be26a66645de04c7b220abeebfd2f024990a696 (diff)
Add wrappers around boost::filesystem methods that handle the
required mangling of long filenames on Windows. Also wrap lots of missing places (e.g. calls to asdcplib, libxml++, libcxml etc.) in dcp::filesystem::fix_long_path(). The idea is to keep paths un-mangled until they we call some filesystem-related API and mangle them at that point. Otherwise we end up serialising mangled names, which seems like it will not end well. Should fix DoM #2623.
Diffstat (limited to 'tools/dcpinfo.cc')
-rw-r--r--tools/dcpinfo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dcpinfo.cc b/tools/dcpinfo.cc
index 6a37be1c..e812afe4 100644
--- a/tools/dcpinfo.cc
+++ b/tools/dcpinfo.cc
@@ -39,6 +39,7 @@
#include "decrypted_kdm.h"
#include "encrypted_kdm.h"
#include "exceptions.h"
+#include "filesystem.h"
#include "interop_subtitle_asset.h"
#include "mono_picture_asset.h"
#include "picture_asset.h"
@@ -352,7 +353,7 @@ main (int argc, char* argv[])
exit (EXIT_FAILURE);
}
- if (!boost::filesystem::exists (argv[optind])) {
+ if (!filesystem::exists(argv[optind])) {
cerr << argv[0] << ": DCP or CPL " << argv[optind] << " not found.\n";
exit (EXIT_FAILURE);
}