Set up TextDecoder position based on the time that the next thing will
[dcpomatic.git] / src / lib / text_decoder.h
index 607d9e194f95cadef876c147b2b151ce59fbcc3f..5f01c5b1f587d783cdbe3cb7f090ec47ec8ca360 100644 (file)
@@ -42,11 +42,7 @@ class Image;
 class TextDecoder : public DecoderPart
 {
 public:
-       TextDecoder (
-               Decoder* parent,
-               std::shared_ptr<const TextContent>,
-               dcpomatic::ContentTime first
-               );
+       TextDecoder (Decoder* parent, std::shared_ptr<const TextContent>);
 
        boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film>) const override {
                return _position;
@@ -60,6 +56,8 @@ public:
        void emit_plain (dcpomatic::ContentTimePeriod period, sub::Subtitle const & subtitle);
        void emit_stop (dcpomatic::ContentTime to);
 
+       void maybe_set_position (dcpomatic::ContentTime position);
+
        void seek () override;
 
        std::shared_ptr<const TextContent> content () const {