X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=57ddee781968556087e6d307043ddad6850a260e;hb=c7916079e06d985121842962b9736a6673e22dfe;hp=7ba2cb2eb67c81f4ee8159e890ebbefce0d09f10;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 7ba2cb2eb..57ddee781 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,23 +18,27 @@ */ + #ifndef DCPOMATIC_DECODER_PART_H #define DCPOMATIC_DECODER_PART_H + #include "dcpomatic_time.h" #include + class Decoder; class Log; class Film; + class DecoderPart { public: DecoderPart (Decoder* parent); virtual ~DecoderPart () {} - virtual ContentTime position (boost::shared_ptr film) const = 0; + virtual boost::optional position (std::shared_ptr film) const = 0; virtual void seek () = 0; void set_ignore (bool i) { @@ -52,4 +56,5 @@ private: bool _ignore; }; + #endif