summaryrefslogtreecommitdiff
path: root/src/lib/decoder_part.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/decoder_part.h
parent9482a41238c370e093c896145b844dac0b221345 (diff)
Don't trust video timestamps from FFmpegDecoder.
Back-ported from 98342fb53eae4d32440fc69c279f2ca0fef785b5 in v2.15.x.
Diffstat (limited to 'src/lib/decoder_part.h')
-rw-r--r--src/lib/decoder_part.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h
index 7ba2cb2eb..e763b7313 100644
--- a/src/lib/decoder_part.h
+++ b/src/lib/decoder_part.h
@@ -34,7 +34,7 @@ public:
DecoderPart (Decoder* parent);
virtual ~DecoderPart () {}
- virtual ContentTime position (boost::shared_ptr<const Film> film) const = 0;
+ virtual boost::optional<ContentTime> position (boost::shared_ptr<const Film> film) const = 0;
virtual void seek () = 0;
void set_ignore (bool i) {