Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / text_decoder.h
index 02afeeb94251132984f24b7ae215e0734433b224..fba9b59472b74047db2d45761321582a833faf7e 100644 (file)
@@ -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