#include <set>\r
\r
namespace caspar { namespace core {\r
- \r
+ \r
void destroy_producer(safe_ptr<frame_producer>& producer)\r
{\r
if(!producer.unique())\r
\r
channel_.execution().invoke([&]{other.impl_->channel_.execution().invoke(func, high_priority);});\r
}\r
+\r
+ layer_status get_status(int index)\r
+ { \r
+ return channel_.execution().invoke([&]\r
+ {\r
+ return layers_[index].status();\r
+ }, high_priority );\r
+ }\r
\r
boost::unique_future<safe_ptr<frame_producer>> foreground(int index)\r
{\r
void stage::clear(){impl_->clear();}\r
void stage::swap_layer(int index, size_t other_index){impl_->swap_layer(index, other_index);}\r
void stage::swap_layer(int index, size_t other_index, stage& other){impl_->swap_layer(index, other_index, other);}\r
+layer_status stage::get_status(int index){return impl_->get_status(index);}\r
boost::unique_future<safe_ptr<frame_producer>> stage::foreground(size_t index) {return impl_->foreground(index);}\r
boost::unique_future<safe_ptr<frame_producer>> stage::background(size_t index) {return impl_->background(index);}\r
std::map<int, safe_ptr<basic_frame>> stage::execute(){return impl_->execute();}\r