summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-10 22:51:55 +0100
committerCarl Hetherington <cth@carlh.net>2019-11-11 14:15:44 +0100
commit0e8a1ab7c41756115f44229053e1e7024530fb32 (patch)
treeddeeb9969f5c783ba208574da67c9c7fc591b623 /src/lib/video_decoder.h
parentc247a1b81b78164acf84f4b003062fab25e64b53 (diff)
Make DecoderPart::_position an optional.
Diffstat (limited to 'src/lib/video_decoder.h')
-rw-r--r--src/lib/video_decoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h
index 76a91c525..34ce8f288 100644
--- a/src/lib/video_decoder.h
+++ b/src/lib/video_decoder.h
@@ -51,7 +51,7 @@ public:
friend struct ffmpeg_pts_offset_test;
friend void ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int gaps, int video_length);
- dcpomatic::ContentTime position (boost::shared_ptr<const Film>) const {
+ boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const {
return _position;
}
@@ -66,7 +66,7 @@ private:
/** Frame of last thing to be emitted */
boost::optional<Frame> _last_emitted_frame;
boost::optional<Eyes> _last_emitted_eyes;
- dcpomatic::ContentTime _position;
+ boost::optional<dcpomatic::ContentTime> _position;
};
#endif