#include "decoder.h"
class StringTextFileContent;
-class Log;
class StringTextFileDecoder : public Decoder, public StringTextFile
{
public:
- StringTextFileDecoder (boost::shared_ptr<const StringTextFileContent>, boost::shared_ptr<Log> log);
+ StringTextFileDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const StringTextFileContent>);
- void seek (ContentTime time, bool accurate);
- bool pass ();
+ void seek (dcpomatic::ContentTime time, bool accurate) override;
+ bool pass () override;
private:
- ContentTimePeriod content_time_period (sub::Subtitle s) const;
+ dcpomatic::ContentTimePeriod content_time_period (sub::Subtitle s) const;
+ void update_position();
size_t _next;
};