X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fbutler.h;h=6bb0467af1f526ed5670dde6237511c47cc0f8df;hb=12d1abf033654727d6ab6278087ff7cfc65d63f6;hp=87408646bc28e3e458e23f75757cc5a81b80da44;hpb=d6aeaf8dd1b3158689da7b75c7417c1838af9c95;p=dcpomatic.git diff --git a/src/lib/butler.h b/src/lib/butler.h index 87408646b..6bb0467af 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -19,11 +19,16 @@ */ +#ifndef DCPOMATIC_BUTLER_H +#define DCPOMATIC_BUTLER_H + + #include "audio_mapping.h" #include "audio_ring_buffers.h" #include "change_signaller.h" #include "exception_store.h" #include "text_ring_buffers.h" +#include "text_type.h" #include "video_ring_buffers.h" #include #include @@ -46,7 +51,7 @@ public: Butler ( std::weak_ptr film, - std::shared_ptr player, + Player& player, AudioMapping map, int audio_channels, std::function pixel_format, @@ -101,7 +106,7 @@ private: void seek_unlocked (dcpomatic::DCPTime position, bool accurate); std::weak_ptr _film; - std::shared_ptr _player; + Player& _player; boost::thread _thread; VideoRingBuffers _video; @@ -152,3 +157,7 @@ private: boost::signals2::scoped_connection _player_text_connection; boost::signals2::scoped_connection _player_change_connection; }; + + +#endif +