diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-04 00:06:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-04 00:06:54 +0000 |
| commit | f9754756b1cda04089fa0548bcccc51b0dd23403 (patch) | |
| tree | 5d2b2143494c618f74a90360144174150fd397bd /src/lib/string_text_file_content.cc | |
| parent | bb4af4ee38488120090de1879ee43a27ba2d4537 (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.cc | 8 |
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; +} |
