\r
std::shared_ptr<diagnostics::graph> graph_;\r
\r
- safe_ptr<core::basic_frame> tail_;\r
tbb::concurrent_bounded_queue<safe_ptr<core::basic_frame>> frame_buffer_;\r
\r
com_context<flash_renderer> context_; \r
flash_producer(const safe_ptr<core::frame_factory>& frame_factory, const std::wstring& filename) \r
: filename_(filename) \r
, frame_factory_(frame_factory)\r
- , tail_(core::basic_frame::empty()) \r
, context_(L"flash_producer")\r
{ \r
if(!boost::filesystem::exists(filename))\r
{ \r
graph_->set_value("output-buffer", static_cast<float>(frame_buffer_.size())/static_cast<float>(frame_buffer_.capacity()));\r
\r
- frame_buffer_.try_pop(tail_); \r
- return tail_;\r
+ auto frame = core::basic_frame::late();\r
+ frame_buffer_.try_pop(frame); \r
+ return frame;\r
}\r
\r
virtual void param(const std::wstring& param) \r