X-Git-Url: https://git.sesse.net/?p=casparcg;a=blobdiff_plain;f=modules%2Fflash%2Fproducer%2Fflash_producer.cpp;h=4239e1be783912639e29123acd2ef13a616c8a98;hp=224efcd6bc2bbb2cb495b14ec4782086dd441c81;hb=1198719d8588af142bcb81aa9a88009fbd22e2f6;hpb=916be52fa4a817c3b1dd10c57bb0b6f328523c26 diff --git a/modules/flash/producer/flash_producer.cpp b/modules/flash/producer/flash_producer.cpp index 224efcd6b..4239e1be7 100644 --- a/modules/flash/producer/flash_producer.cpp +++ b/modules/flash/producer/flash_producer.cpp @@ -280,30 +280,31 @@ public: struct flash_producer : public core::frame_producer { - const std::wstring filename_; - const safe_ptr frame_factory_; + const std::wstring filename_; + const safe_ptr frame_factory_; - tbb::atomic fps_; + tbb::atomic fps_; safe_ptr graph_; - tbb::concurrent_bounded_queue> frame_buffer_; + tbb::concurrent_bounded_queue> frame_buffer_; - mutable tbb::spin_mutex last_frame_mutex_; - safe_ptr last_frame_; - - com_context context_; + mutable tbb::spin_mutex last_frame_mutex_; + safe_ptr last_frame_; + + int width_; + int height_; + + com_context context_; - int width_; - int height_; public: flash_producer(const safe_ptr& frame_factory, const std::wstring& filename, size_t width, size_t height) : filename_(filename) , frame_factory_(frame_factory) - , context_(L"flash_producer") , last_frame_(core::basic_frame::empty()) , width_(width > 0 ? width : frame_factory->get_video_format_desc().width) , height_(height > 0 ? height : frame_factory->get_video_format_desc().height) + , context_(L"flash_producer") { if(!boost::filesystem::exists(filename)) BOOST_THROW_EXCEPTION(file_not_found() << boost::errinfo_file_name(narrow(filename)));