diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-12-04 20:55:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-12-04 21:26:27 +0100 |
| commit | df66616a4d9af7b97480215f51266ab9f6a912e9 (patch) | |
| tree | fead77633bcc036bdfebc703dccdba0f2ffc96d3 /src/subtitle_asset.cc | |
| parent | e42602d3f8ca95c26c87425a42ebcb17db88cd72 (diff) | |
Pass optimisation setting through to subtitle XML writers.
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 869bac0f..b3336d13 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -724,7 +724,7 @@ SubtitleAsset::pull_fonts (shared_ptr<order::Part> part) * class because the differences between the two are fairly subtle. */ void -SubtitleAsset::subtitles_as_xml (xmlpp::Element* xml_root, int time_code_rate, Standard standard) const +SubtitleAsset::subtitles_as_xml(xmlpp::Element* xml_root, int time_code_rate, Standard standard, SubtitleOptimisation optimisation) const { auto sorted = _subtitles; std::stable_sort(sorted.begin(), sorted.end(), SubtitleSorter()); @@ -814,7 +814,7 @@ SubtitleAsset::subtitles_as_xml (xmlpp::Element* xml_root, int time_code_rate, S /* Write XML */ - order::Context context(time_code_rate, standard, 1); + order::Context context(time_code_rate, standard, 1, optimisation); root->write_xml (xml_root, context); } |
