X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencoder.h;h=f921fcb515962fb9f92af12d2189af77778c2274;hb=c80eca531e01860e6714f526b2efb07a58c2e26e;hp=19c1120b360f789fd8af1ef76ccf85a97e494337;hpb=2d4e8c5f69cc694625ad95dcee554499605f823b;p=dcpomatic.git diff --git a/src/lib/encoder.h b/src/lib/encoder.h index 19c1120b3..f921fcb51 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -23,8 +23,8 @@ #define DCPOMATIC_ENCODER_H +#include "player.h" #include "player_text.h" -#include "types.h" #include @@ -58,11 +58,13 @@ public: /** @return the number of frames that are done */ virtual Frame frames_done () const = 0; virtual bool finishing () const = 0; + virtual void pause(void) {} + virtual void resume(void) {} protected: std::shared_ptr _film; std::weak_ptr _job; - std::shared_ptr _player; + Player _player; };