diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-10 22:51:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-11 14:15:44 +0100 |
| commit | 0e8a1ab7c41756115f44229053e1e7024530fb32 (patch) | |
| tree | ddeeb9969f5c783ba208574da67c9c7fc591b623 /src/lib/text_decoder.h | |
| parent | c247a1b81b78164acf84f4b003062fab25e64b53 (diff) | |
Make DecoderPart::_position an optional.
Diffstat (limited to 'src/lib/text_decoder.h')
| -rw-r--r-- | src/lib/text_decoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h index 02afeeb94..fba9b5947 100644 --- a/src/lib/text_decoder.h +++ b/src/lib/text_decoder.h @@ -44,7 +44,7 @@ public: dcpomatic::ContentTime first ); - dcpomatic::ContentTime position (boost::shared_ptr<const Film>) const { + boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const { return _position; } @@ -68,7 +68,7 @@ public: private: boost::shared_ptr<const TextContent> _content; - dcpomatic::ContentTime _position; + boost::optional<dcpomatic::ContentTime> _position; }; #endif |
