* Author: Helge Norberg, helge.norberg@svt.se
*/
-#include "../../stdafx.h"
+#include "../../StdAfx.h"
#include "const_producer.h"
class const_producer : public frame_producer_base
{
+ monitor::subject monitor_subject_;
std::vector<draw_frame> frames_;
std::vector<draw_frame>::const_iterator seek_position_;
constraints constraints_;
return info;
}
- void subscribe(const monitor::observable::observer_ptr& o) override
- {
- }
-
- void unsubscribe(const monitor::observable::observer_ptr& o) override
+ monitor::subject& monitor_output()
{
+ return monitor_subject_;
}
};
-spl::shared_ptr<class frame_producer> create_const_producer(
- const class draw_frame& frame, int width, int height)
+spl::shared_ptr<frame_producer> create_const_producer(
+ const draw_frame& frame, int width, int height)
{
return spl::make_shared<const_producer>(frame, width, height);
}
-spl::shared_ptr<class frame_producer> create_const_producer(
- std::vector<class draw_frame>&& frames, int width, int height)
+spl::shared_ptr<frame_producer> create_const_producer(
+ std::vector<draw_frame>&& frames, int width, int height)
{
return spl::make_shared<const_producer>(std::move(frames), width, height);
}