From f9754756b1cda04089fa0548bcccc51b0dd23403 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 4 May 2019 00:06:54 +0000 Subject: 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. --- src/lib/string_text_file_content.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/string_text_file_content.cc') 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; +} -- cgit v1.2.3