Various work on certificate handling for screens; need XML config here, now.
[dcpomatic.git] / src / lib / decoder.cc
index 93ce2cdbb2c816d0b388fba69e556c70a27dffed..7066b488e6507352320c06767caaa216218c0275 100644 (file)
@@ -49,16 +49,28 @@ using boost::optional;
  *  @param o Options.
  *  @param j Job that we are running within, or 0
  */
-Decoder::Decoder (boost::shared_ptr<Film> f, boost::shared_ptr<const Options> o, Job* j)
+Decoder::Decoder (boost::shared_ptr<Film> f, boost::shared_ptr<const DecodeOptions> o, Job* j)
        : _film (f)
        , _opt (o)
        , _job (j)
 {
-       
+       _film_connection = f->Changed.connect (bind (&Decoder::film_changed, this, _1));
 }
 
+/** Seek to a position as a source timestamp in seconds.
+ *  @return true on error.
+ */
+bool
+Decoder::seek (double)
+{
+       throw DecodeError ("decoder does not support seek");
+}
+
+/** Seek so that the next frame we will produce is the same as the last one.
+ *  @return true on error.
+ */
 bool
-Decoder::seek (SourceFrame f)
+Decoder::seek_to_last ()
 {
        throw DecodeError ("decoder does not support seek");
 }