summaryrefslogtreecommitdiff
path: root/src/lib/dcp_subtitle_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-14 00:12:22 +0200
committerCarl Hetherington <cth@carlh.net>2024-08-17 12:51:26 +0200
commit0b4bffff846efe967110477797218c170ffb3166 (patch)
treef3cb1bbf1e3c86905afe42b159284d2d2c299476 /src/lib/dcp_subtitle_content.cc
parent11456e09fd0a18ff9bd4c8421514b707d5d0c2fe (diff)
Add option to use relative content paths (#2856).
Diffstat (limited to 'src/lib/dcp_subtitle_content.cc')
-rw-r--r--src/lib/dcp_subtitle_content.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc
index d381ca7cb..58007ac34 100644
--- a/src/lib/dcp_subtitle_content.cc
+++ b/src/lib/dcp_subtitle_content.cc
@@ -38,6 +38,7 @@ using std::list;
using std::make_shared;
using std::shared_ptr;
using std::string;
+using boost::optional;
using dcp::raw_convert;
using namespace dcpomatic;
@@ -140,10 +141,10 @@ DCPSubtitleContent::technical_summary () const
}
void
-DCPSubtitleContent::as_xml(xmlpp::Element* element, bool with_paths) const
+DCPSubtitleContent::as_xml(xmlpp::Element* element, bool with_paths, PathBehaviour path_behaviour, optional<boost::filesystem::path> film_directory) const
{
cxml::add_text_child(element, "Type", "DCPSubtitle");
- Content::as_xml(element, with_paths);
+ Content::as_xml(element, with_paths, path_behaviour, film_directory);
if (only_text()) {
only_text()->as_xml(element);