From 1198719d8588af142bcb81aa9a88009fbd22e2f6 Mon Sep 17 00:00:00 2001 From: ronag Date: Tue, 6 Dec 2011 21:59:34 +0000 Subject: [PATCH] 2.0.2: flash_producer: Fixed very minor problem with destruction order. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.2@1807 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- modules/flash/producer/flash_producer.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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))); -- 2.39.2