summaryrefslogtreecommitdiff
path: root/src/lib/string_text_file_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-04 00:06:54 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-04 00:06:54 +0000
commitf9754756b1cda04089fa0548bcccc51b0dd23403 (patch)
tree5d2b2143494c618f74a90360144174150fd397bd /src/lib/string_text_file_content.cc
parentbb4af4ee38488120090de1879ee43a27ba2d4537 (diff)
Include video_frame_rate in TextContent identifier so that if (for
example) some SRT subs are being burnt and their video frame rate is changed we won't try to reuse the video that has been burnt with the subs at the old frame rate.
Diffstat (limited to 'src/lib/string_text_file_content.cc')
-rw-r--r--src/lib/string_text_file_content.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/string_text_file_content.cc b/src/lib/string_text_file_content.cc
index b4362a7d0..b3f7f431e 100644
--- a/src/lib/string_text_file_content.cc
+++ b/src/lib/string_text_file_content.cc
@@ -100,3 +100,11 @@ StringTextFileContent::approximate_length () const
{
return DCPTime (_length, FrameRateChange());
}
+
+string
+StringTextFileContent::identifier () const
+{
+ string s = Content::identifier ();
+ s += "_" + only_text()->identifier();
+ return s;
+}