diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-16 10:10:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-18 10:41:19 +0200 |
| commit | a9cb7313f7846f8b2bf9f96d19cf28abd7caf7fc (patch) | |
| tree | 020b1ed7922e97c9711641209efdab845cdf65fc /src/lib/video_mxf_content.h | |
| parent | 5c5da23c412e9b922154f8934e16f3a51ff48bdc (diff) | |
Fix thinko in relative path change.
We have to canonicalise relative paths with respect to the film's
directory on load, otherwise we try to use the relative path and it's
interpreted against the current working directory.
This unfortunately requires the film's directory to be piped into quite
a lot of new places.
Diffstat (limited to 'src/lib/video_mxf_content.h')
| -rw-r--r-- | src/lib/video_mxf_content.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index d45ec591a..0def6008c 100644 --- a/src/lib/video_mxf_content.h +++ b/src/lib/video_mxf_content.h @@ -26,7 +26,7 @@ class VideoMXFContent : public Content { public: VideoMXFContent (boost::filesystem::path path); - VideoMXFContent (cxml::ConstNodePtr node, int version); + VideoMXFContent (cxml::ConstNodePtr node, boost::optional<boost::filesystem::path> film_directory, int version); std::shared_ptr<VideoMXFContent> shared_from_this () { return std::dynamic_pointer_cast<VideoMXFContent>(Content::shared_from_this()); |
