]> git.sesse.net Git - casparcg/blobdiff - core/producer/color/color_producer.cpp
2.0.0.2:
[casparcg] / core / producer / color / color_producer.cpp
index 0164daecef2f6172ccbfda1f2849a153706165b6..58d2fd5315d1f7ab3e5d3cfdc8f7905ecc29e44e 100644 (file)
@@ -37,21 +37,19 @@ public:
 \r
        gpu_frame_ptr get_frame()\r
        { \r
-               frame_ = factory_->create_frame(format_desc_);\r
-               __stosd(reinterpret_cast<unsigned long*>(frame_->data()), color_value_, frame_->size() / sizeof(unsigned long));\r
                return frame_;\r
        }\r
        const frame_format_desc& get_frame_format_desc() const { return format_desc_; }\r
        \r
        void initialize(const frame_factory_ptr& factory)\r
        {\r
-               factory_ = factory;\r
+               frame_ = factory->create_frame(format_desc_);\r
+               __stosd(reinterpret_cast<unsigned long*>(frame_->data()), color_value_, frame_->size() / sizeof(unsigned long));\r
        }\r
 \r
        frame_format_desc format_desc_;\r
        gpu_frame_ptr frame_;\r
        unsigned int color_value_;\r
-       frame_factory_ptr factory_;\r
 };\r
 \r
 union Color \r