\r
#include "CLKProtocolStrategy.h"\r
\r
-#include <core/producer\flash\cg_producer.h>\r
+#include <modules/flash/producer/cg_producer.h>\r
\r
#include <string>\r
#include <sstream>\r
\r
namespace caspar { namespace protocol { namespace CLK {\r
\r
-CLKProtocolStrategy::CLKProtocolStrategy(const std::vector<safe_ptr<core::channel>>& channels) \r
+CLKProtocolStrategy::CLKProtocolStrategy(const std::vector<safe_ptr<core::video_channel>>& channels) \r
: currentState_(ExpectingNewCommand), bClockLoaded_(false), pChannel_(channels.at(0))\r
{}\r
\r
\r
if(currentCommand_.command_ == CLKCommand::CLKReset) \r
{\r
- core::flash::get_default_cg_producer(pChannel_)->clear();\r
+ pChannel_->stage()->clear(flash::cg_producer::DEFAULT_LAYER);\r
bClockLoaded_ = false;\r
\r
CASPAR_LOG(info) << L"CLK: Recieved and executed reset-command";\r
{\r
if(!bClockLoaded_) \r
{\r
- core::flash::get_default_cg_producer(pChannel_)->add(0, TEXT("hawrysklocka/clock"), true, TEXT(""), currentCommand_.GetData());\r
+ flash::get_default_cg_producer(pChannel_)->add(0, TEXT("hawrysklocka/clock.ft"), true, TEXT(""), currentCommand_.GetData());\r
bClockLoaded_ = true;\r
}\r
else \r
- core::flash::get_default_cg_producer(pChannel_)->update(0, currentCommand_.GetData());\r
+ flash::get_default_cg_producer(pChannel_)->update(0, currentCommand_.GetData());\r
\r
CASPAR_LOG(debug) << L"CLK: Clockdata sent: " << currentCommand_.GetData();\r
CASPAR_LOG(debug) << L"CLK: Executed valid command: " << currentCommandString_.str();\r