X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder.cc;h=fd0abee4183e540b4a4db5c5a9cb3588e5d8a34c;hb=32fc1ddb0ee004d18c36155ddcf4d9b3998a7061;hp=2bacf58e73b929a57948a6097465fd90d4cd15e8;hpb=4fbd1901fdabc829cfa7e7d4d0c1272bba87033c;p=dcpomatic.git diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 2bacf58e7..fd0abee41 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -46,13 +46,31 @@ using boost::shared_ptr; using boost::optional; /** @param f Film. - * @param o Options. + * @param o Decode options. * @param j Job that we are running within, or 0 */ -Decoder::Decoder (boost::shared_ptr f, boost::shared_ptr o, Job* j) +Decoder::Decoder (boost::shared_ptr f, 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_to_last () +{ + throw DecodeError ("decoder does not support seek"); }