foreground_ = background_;\r
background_ = frame_producer::empty();\r
frame_number_ = 0;\r
- auto_play_delta_ = nullptr; \r
+ auto_play_delta_.reset();\r
}\r
\r
is_paused_ = false;\r
foreground_ = frame_producer::empty();\r
background_ = background_;\r
frame_number_ = 0;\r
- auto_play_delta_ = nullptr; \r
+ auto_play_delta_.reset();\r
\r
is_paused_ = true;\r
}\r
{\r
boost::property_tree::wptree info;\r
info.add(L"status", is_paused_ ? L"paused" : (foreground_ == frame_producer::empty() ? L"stopped" : L"playing"));\r
- info.add(L"auto_delta", auto_play_delta_);\r
+ info.add(L"auto_delta", (auto_play_delta_ ? boost::lexical_cast<std::wstring>(*auto_play_delta_) : L"null"));\r
info.add(L"frame-number", frame_number_);\r
\r
auto nb_frames = foreground_->nb_frames();\r