X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftext_decoder.h;h=fba9b59472b74047db2d45761321582a833faf7e;hp=a82f43f51af2e3a1ddd8bf1178366241cae51add;hb=6ef1fc5f40567650ca9ef2b7644e4fdd97640ae6;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5 diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h index a82f43f51..fba9b5947 100644 --- a/src/lib/text_decoder.h +++ b/src/lib/text_decoder.h @@ -41,20 +41,20 @@ public: TextDecoder ( Decoder* parent, boost::shared_ptr, - ContentTime first + dcpomatic::ContentTime first ); - ContentTime position (boost::shared_ptr) const { + boost::optional position (boost::shared_ptr) const { return _position; } - void emit_bitmap_start (ContentTime from, boost::shared_ptr image, dcpomatic::Rect rect); - void emit_bitmap (ContentTimePeriod period, boost::shared_ptr image, dcpomatic::Rect rect); - void emit_plain_start (ContentTime from, std::list s); - void emit_plain_start (ContentTime from, sub::Subtitle const & subtitle); - void emit_plain (ContentTimePeriod period, std::list s); - void emit_plain (ContentTimePeriod period, sub::Subtitle const & subtitle); - void emit_stop (ContentTime to); + void emit_bitmap_start (dcpomatic::ContentTime from, boost::shared_ptr image, dcpomatic::Rect rect); + void emit_bitmap (dcpomatic::ContentTimePeriod period, boost::shared_ptr image, dcpomatic::Rect rect); + void emit_plain_start (dcpomatic::ContentTime from, std::list s); + void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle); + void emit_plain (dcpomatic::ContentTimePeriod period, std::list s); + void emit_plain (dcpomatic::ContentTimePeriod period, sub::Subtitle const & subtitle); + void emit_stop (dcpomatic::ContentTime to); void seek (); @@ -64,11 +64,11 @@ public: boost::signals2::signal BitmapStart; boost::signals2::signal PlainStart; - boost::signals2::signal Stop; + boost::signals2::signal Stop; private: boost::shared_ptr _content; - ContentTime _position; + boost::optional _position; }; #endif