summaryrefslogtreecommitdiff
path: root/src/lib/text_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-10 22:59:39 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-15 01:53:19 +0100
commitc259c459f5d326e7c42806b41de06c71ad4a3ad8 (patch)
treea3a976edbefb9638c11c5fa477e81efde60234c8 /src/lib/text_decoder.h
parent9482a41238c370e093c896145b844dac0b221345 (diff)
Don't trust video timestamps from FFmpegDecoder.
Back-ported from 98342fb53eae4d32440fc69c279f2ca0fef785b5 in v2.15.x.
Diffstat (limited to 'src/lib/text_decoder.h')
-rw-r--r--src/lib/text_decoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h
index a82f43f51..a320e146b 100644
--- a/src/lib/text_decoder.h
+++ b/src/lib/text_decoder.h
@@ -44,7 +44,7 @@ public:
ContentTime first
);
- ContentTime position (boost::shared_ptr<const Film>) const {
+ boost::optional<ContentTime> position (boost::shared_ptr<const Film>) const {
return _position;
}