From a9cb7313f7846f8b2bf9f96d19cf28abd7caf7fc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 16 Sep 2024 10:10:46 +0200 Subject: 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. --- src/lib/ffmpeg_content.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/ffmpeg_content.cc') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 61a7dd4df..5a99ecaa5 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -88,8 +88,8 @@ get_optional_enum (cxml::ConstNodePtr node, string name) } -FFmpegContent::FFmpegContent (cxml::ConstNodePtr node, int version, list& notes) - : Content (node) +FFmpegContent::FFmpegContent(cxml::ConstNodePtr node, boost::optional film_directory, int version, list& notes) + : Content(node, film_directory) { _color_range = get_optional_enum(node, "ColorRange"); -- cgit v1.2.3