summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-04-10 23:40:09 +0100
committerCarl Hetherington <cth@carlh.net>2018-04-10 23:40:22 +0100
commit31f9d8691ec467c7b7d977f1950dfbfa98ba73ac (patch)
treeecc411e5fb3c1a27d6cf47c0963124593b4c68ea
parent6c31937d9be060d856306da4ae42847584d516bd (diff)
Missing setup of SubtitleDecoder position causing #1271 and probably other things.
-rw-r--r--ChangeLog5
-rw-r--r--src/lib/subtitle_decoder.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d30e12b6f..4a6285ba0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-04-10 Carl Hetherington <cth@carlh.net>
+
+ * Fix disappearing subtitles when they are added from text files
+ alongside video content which also contain subtitles (#1271).
+
2018-04-06 Carl Hetherington <cth@carlh.net>
* Fix missing start icon for the player in Linux.
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc
index 39c36415a..32cae6acc 100644
--- a/src/lib/subtitle_decoder.cc
+++ b/src/lib/subtitle_decoder.cc
@@ -61,6 +61,7 @@ void
SubtitleDecoder::emit_image_start (ContentTime from, shared_ptr<Image> image, dcpomatic::Rect<double> rect)
{
ImageStart (ContentImageSubtitle (from, image, rect));
+ _position = from;
}
void