From 6a68937320fa76ce213c648845abc73983fc1849 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Dec 2017 22:04:49 +0000 Subject: Setup SubtitleDecoder::_position correctly (in some cases). --- src/lib/dcp_decoder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/dcp_decoder.cc') diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 44053c5df..1a4896fe7 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -59,7 +59,8 @@ DCPDecoder::DCPDecoder (shared_ptr c, shared_ptr log, boo audio.reset (new AudioDecoder (this, c->audio, log, fast)); } if (c->subtitle) { - subtitle.reset (new SubtitleDecoder (this, c->subtitle, log)); + /* XXX: this time here should be the time of the first subtitle, not 0 */ + subtitle.reset (new SubtitleDecoder (this, c->subtitle, log, ContentTime())); } shared_ptr cpl; -- cgit v1.2.3