]> git.sesse.net Git - casparcg/commitdiff
Fixed problem in image_producer when used inside scene
authorHelge Norberg <helge.norberg@svt.se>
Wed, 23 Oct 2013 13:12:00 +0000 (15:12 +0200)
committerHelge Norberg <helge.norberg@svt.se>
Wed, 23 Oct 2013 13:12:00 +0000 (15:12 +0200)
modules/image/producer/image_producer.cpp

index b499967cb75b0c4fb940c3d5a9e1dd69e4960688..dcecc4bd4f91d742814aa838d7c57cc2172a5444 100644 (file)
@@ -110,6 +110,8 @@ struct image_producer : public core::frame_producer_base
  
                std::copy_n(FreeImage_GetBits(bitmap.get()), frame.image_data().size(), frame.image_data().begin());
                frame_ = core::draw_frame(std::move(frame));
+               constraints_.width.set(FreeImage_GetWidth(bitmap.get()));
+               constraints_.height.set(FreeImage_GetHeight(bitmap.get()));
        }
        
        // frame_producer