summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-12-13 22:04:49 +0000
committerCarl Hetherington <cth@carlh.net>2017-12-13 22:04:49 +0000
commit6a68937320fa76ce213c648845abc73983fc1849 (patch)
tree542a0426b4a0790f28cce34aef43e52b41e896cf /src/lib/subtitle_decoder.cc
parent7b0af48a5861cb58314db46d29b05289979c2c25 (diff)
Setup SubtitleDecoder::_position correctly (in some cases).
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
-rw-r--r--src/lib/subtitle_decoder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc
index 802c9ef84..5838d167b 100644
--- a/src/lib/subtitle_decoder.cc
+++ b/src/lib/subtitle_decoder.cc
@@ -40,10 +40,12 @@ using boost::function;
SubtitleDecoder::SubtitleDecoder (
Decoder* parent,
shared_ptr<const SubtitleContent> c,
- shared_ptr<Log> log
+ shared_ptr<Log> log,
+ ContentTime first
)
: DecoderPart (parent, log)
, _content (c)
+ , _position (first)
{
}