const bool loop_;\r
\r
safe_ptr<core::basic_frame> last_frame_;\r
- bool eof_;\r
\r
public:\r
explicit ffmpeg_producer(const safe_ptr<core::frame_factory>& frame_factory, const std::wstring& filename, const std::wstring& filter, bool loop, int start, int length) \r
, start_(start)\r
, loop_(loop)\r
, last_frame_(core::basic_frame::empty())\r
- , eof_(false)\r
{\r
graph_->add_guide("frame-time", 0.5);\r
graph_->set_color("frame-time", diagnostics::color(1.0f, 0.0f, 0.0f));\r
\r
virtual safe_ptr<core::basic_frame> receive(int hints)\r
{\r
- if(eof_)\r
- return last_frame();\r
-\r
auto frame = core::basic_frame::late();\r
\r
frame_timer_.restart();\r
else\r
{\r
if(input_.eof())\r
- {\r
- eof_ = true;\r
- return last_frame();\r
- }\r
+ return core::basic_frame::eof();\r
else\r
{\r
graph_->add_tag("underflow"); \r