]> git.sesse.net Git - casparcg/blobdiff - core/producer/scene/const_producer.cpp
* Refactored so that frame_producers are stored in a frame_producer_registry instance...
[casparcg] / core / producer / scene / const_producer.cpp
index 223263127dd3e08b142443e31c176b9d07e05930..8a5588121a8d559f68119977e8094b335835d47f 100644 (file)
@@ -19,7 +19,7 @@
 * Author: Helge Norberg, helge.norberg@svt.se
 */
 
-#include "../../stdafx.h"
+#include "../../StdAfx.h"
 
 #include "const_producer.h"
 
@@ -30,6 +30,7 @@ namespace caspar { namespace core {
 
 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_;
@@ -82,23 +83,20 @@ public:
                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);
 }