X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.h;h=5bf6363ad282630005a81067e0ac1940179e5cd9;hb=2f796cd531de522a3b7ed03a9942f3c55f3a0b5b;hp=076dc3f3bb9bd9af3dd28838140c786b6f5543b6;hpb=de2af791bdfdcd653752cba970e59efc7bf810c7;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.h b/src/lib/dcp_subtitle_decoder.h index 076dc3f3b..5bf6363ad 100644 --- a/src/lib/dcp_subtitle_decoder.h +++ b/src/lib/dcp_subtitle_decoder.h @@ -18,7 +18,7 @@ */ -#include "subtitle_decoder.h" +#include "text_decoder.h" #include "dcp_subtitle.h" class DCPSubtitleContent; @@ -26,14 +26,14 @@ class DCPSubtitleContent; class DCPSubtitleDecoder : public DCPSubtitle, public Decoder { public: - DCPSubtitleDecoder (boost::shared_ptr, boost::shared_ptr log); + DCPSubtitleDecoder (boost::shared_ptr film, boost::shared_ptr); - void pass (); - void seek (ContentTime time, bool accurate); + bool pass (); + void seek (dcpomatic::ContentTime time, bool accurate); private: - ContentTimePeriod content_time_period (dcp::SubtitleString s) const; + dcpomatic::ContentTimePeriod content_time_period (boost::shared_ptr s) const; - std::list _subtitles; - std::list::const_iterator _next; + std::list > _subtitles; + std::list >::const_iterator _next; };