diff options
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 2bacf58e7..61e63460b 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -49,10 +49,29 @@ 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. + * @param p Position as a source timestamp in seconds. + * @return true on error. + */ +bool +Decoder::seek (double p) +{ + 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"); } |
