\r
safe_ptr<frame_producer> create_channel_producer(const safe_ptr<core::frame_factory>& frame_factory, const safe_ptr<video_channel>& channel)\r
{\r
- return make_safe<channel_producer>(frame_factory, channel);\r
+ return create_producer_print_proxy(\r
+ make_safe<channel_producer>(frame_factory, channel));\r
}\r
\r
}}
\ No newline at end of file
if(color2.length() != 9 || color2[0] != '#')\r
return core::frame_producer::empty();\r
\r
- return make_safe<color_producer>(frame_factory, color2);\r
+ return create_producer_print_proxy(\r
+ make_safe<color_producer>(frame_factory, color2));\r
}\r
safe_ptr<core::write_frame> create_color_frame(void* tag, const safe_ptr<core::frame_factory>& frame_factory, const std::wstring& color)\r
{\r
try\r
{\r
if(!producer->unique())\r
- CASPAR_LOG(trace) << str << L" Not destroyed on safe asynchronous destruction thread: " << producer->use_count();\r
+ CASPAR_LOG(trace) << str << L" Not destroyed on asynchronous destruction thread: " << producer->use_count();\r
else\r
- CASPAR_LOG(trace) << str << L" Destroying on safe asynchronous destruction thread.";\r
+ CASPAR_LOG(trace) << str << L" Destroying on asynchronous destruction thread.";\r
}\r
catch(...){}\r
\r
if(producer == frame_producer::empty())\r
producer = create_playlist_producer(my_frame_factory, params);\r
\r
- if(producer != frame_producer::empty())\r
- producer = create_producer_print_proxy(producer);\r
-\r
return producer;\r
}\r
\r
safe_ptr<core::frame_producer> create_producer(const safe_ptr<frame_factory>&, const std::vector<std::wstring>& params);\r
safe_ptr<core::frame_producer> create_producer(const safe_ptr<frame_factory>&, const std::wstring& params);\r
safe_ptr<core::frame_producer> create_producer_destroy_proxy(safe_ptr<core::frame_producer> producer);\r
+safe_ptr<core::frame_producer> create_producer_print_proxy(safe_ptr<core::frame_producer> producer);\r
\r
}}\r
\r
safe_ptr<frame_producer> create_separated_producer(const safe_ptr<frame_producer>& fill, const safe_ptr<frame_producer>& key)\r
{\r
- return make_safe<separated_producer>(fill, key);\r
+ return create_producer_print_proxy(\r
+ make_safe<separated_producer>(fill, key));\r
}\r
\r
}}\r
\r
safe_ptr<frame_producer> create_transition_producer(const field_mode::type& mode, const safe_ptr<frame_producer>& destination, const transition_info& info)\r
{\r
- return make_safe<transition_producer>(mode, destination, info);\r
+ return create_producer_print_proxy(\r
+ make_safe<transition_producer>(mode, destination, info));\r
}\r
\r
}}\r
if(format_desc.format == core::video_format::invalid)\r
format_desc = frame_factory->get_video_format_desc();\r
\r
- return create_producer_destroy_proxy(make_safe<decklink_producer_proxy>(frame_factory, format_desc, device_index, filter_str, length));\r
+ return create_producer_print_proxy(\r
+ create_producer_destroy_proxy(\r
+ make_safe<decklink_producer_proxy>(frame_factory, format_desc, device_index, filter_str, length)));\r
}\r
\r
}}
\ No newline at end of file
if(!boost::filesystem::exists(filename))\r
BOOST_THROW_EXCEPTION(file_not_found() << boost::errinfo_file_name(narrow(filename))); \r
\r
- return create_producer_destroy_proxy(make_safe<flash_producer>(frame_factory, filename, template_host.width, template_host.height));\r
+ return create_producer_print_proxy(\r
+ create_producer_destroy_proxy(\r
+ make_safe<flash_producer>(frame_factory, filename, template_host.width, template_host.height)));\r
}\r
\r
std::wstring find_template(const std::wstring& template_name)\r
if(ext == extensions.end())\r
return core::frame_producer::empty();\r
\r
- return make_safe<image_producer>(frame_factory, filename + L"." + *ext);\r
+ return create_producer_print_proxy(\r
+ make_safe<image_producer>(frame_factory, filename + L"." + *ext));\r
}\r
\r
\r
if(speed == 0)\r
return core::frame_producer::empty();\r
\r
- return make_safe<image_scroll_producer>(frame_factory, filename + L"." + *ext, speed);\r
+ return create_producer_print_proxy(\r
+ make_safe<image_scroll_producer>(frame_factory, filename + L"." + *ext, speed));\r
}\r
\r
}}
\ No newline at end of file