X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=protocol%2Fcii%2FCIIProtocolStrategy.h;h=46e2fc9e1f1f765c82a71973610c86f98cf25953;hb=c30ace6f19e057aff4d84a54f37596857df93750;hp=adf781828a121a0e1c365ab1b0b8c681d1dcfa97;hpb=3a0c223f3adb9cba5c9b01fa4f234b9293e121cb;p=casparcg diff --git a/protocol/cii/CIIProtocolStrategy.h b/protocol/cii/CIIProtocolStrategy.h index adf781828..46e2fc9e1 100644 --- a/protocol/cii/CIIProtocolStrategy.h +++ b/protocol/cii/CIIProtocolStrategy.h @@ -40,7 +40,10 @@ namespace caspar { namespace protocol { namespace cii { class CIIProtocolStrategy : public IO::IProtocolStrategy { public: - CIIProtocolStrategy(const std::vector>& channels, const spl::shared_ptr& cg_registry); + CIIProtocolStrategy( + const std::vector>& channels, + const spl::shared_ptr& cg_registry, + const spl::shared_ptr& producer_registry); void Parse(const std::wstring& message, IO::ClientInfoPtr pClientInfo); std::string GetCodepage() const { return "ISO-8859-1"; } //ISO 8859-1 @@ -49,6 +52,8 @@ public: spl::shared_ptr GetChannel() const { return pChannel_; } spl::shared_ptr get_cg_registry() const { return cg_registry_; } + spl::shared_ptr get_producer_registry() const { return producer_registry_; } + core::frame_producer_dependencies get_dependencies() const { return core::frame_producer_dependencies(GetChannel()->frame_factory(), channels_, GetChannel()->video_format_desc(), producer_registry_); } void DisplayMediaFile(const std::wstring& filename); void DisplayTemplate(const std::wstring& titleName); @@ -96,6 +101,8 @@ private: std::wstring currentProfile_; spl::shared_ptr pChannel_; spl::shared_ptr cg_registry_; + spl::shared_ptr producer_registry_; + std::vector> channels_; }; }}}