C++11 tidying.
[dcpomatic.git] / src / lib / decoder_part.h
index 53d1a1b0827349fecc2b37dece5498be3786b837..57ddee781968556087e6d307043ddad6850a260e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_DECODER_PART_H
 #define DCPOMATIC_DECODER_PART_H
 
+
 #include "dcpomatic_time.h"
 #include <boost/optional.hpp>
 
+
 class Decoder;
 class Log;
 class Film;
 
+
 class DecoderPart
 {
 public:
        DecoderPart (Decoder* parent);
        virtual ~DecoderPart () {}
 
-       virtual dcpomatic::ContentTime position (boost::shared_ptr<const Film> film) const = 0;
+       virtual boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film> film) const = 0;
        virtual void seek () = 0;
 
        void set_ignore (bool i) {
@@ -52,4 +56,5 @@ private:
        bool _ignore;
 };
 
+
 #endif