X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder.cc;h=637e0ddb291101af81f28115327f195a3e128116;hb=01791aac0b11e9f296cd31a7803e287203bd8355;hp=52b22fa067955b48341b40947a728161f65c6152;hpb=5121d13ded51a70169f5b5d649067c9b26456705;p=dcpomatic.git diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 52b22fa06..637e0ddb2 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -21,55 +21,18 @@ * @brief Parent class for decoders of content. */ -#include -#include -#include #include "film.h" -#include "format.h" -#include "options.h" -#include "exceptions.h" -#include "image.h" -#include "util.h" -#include "log.h" #include "decoder.h" -#include "delay_line.h" -#include "subtitle.h" -#include "filter_graph.h" #include "i18n.h" -using std::string; -using std::stringstream; -using std::min; -using std::pair; -using std::list; using boost::shared_ptr; -using boost::optional; /** @param f Film. * @param o Decode options. */ -Decoder::Decoder (boost::shared_ptr f, DecodeOptions o) +Decoder::Decoder (shared_ptr f) : _film (f) - , _opt (o) { _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 (N_("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 (N_("decoder does not support seek")); -}