summaryrefslogtreecommitdiff
path: root/src/subtitle_asset_internal.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-09 00:43:13 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-09 00:43:13 +0100
commit87c2c54ebfdc1e6ceb0673058c01fd30e13258c2 (patch)
tree10a7d3427cb1f399fc9cb298efff580247427bdd /src/subtitle_asset_internal.cc
parent34be688550e3acdd99c3ca612e7e4696710f3438 (diff)
Switch to UUIDs for Interop image subtitle identification (rather than indices). Basic and untested SMPTE image subtitle support.
Diffstat (limited to 'src/subtitle_asset_internal.cc')
-rw-r--r--src/subtitle_asset_internal.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/subtitle_asset_internal.cc b/src/subtitle_asset_internal.cc
index 13bdf6ab..7b9e18e9 100644
--- a/src/subtitle_asset_internal.cc
+++ b/src/subtitle_asset_internal.cc
@@ -238,13 +238,11 @@ order::Image::as_xml (xmlpp::Element* parent, Context& context) const
xmlpp::Element* e = parent->add_child ("Image", context.xmlns());
position_align (e, context, _h_align, _h_position, _v_align, _v_position);
- e->add_child_text (image_subtitle_file (context.image_number++));
+ if (context.standard == SMPTE) {
+ e->add_child_text (_id);
+ } else {
+ e->add_child_text (_id + ".png");
+ }
return e;
}
-
-string
-dcp::image_subtitle_file (int n)
-{
- return String::compose ("sub_%1.png", n);
-}