From c1e94cb896b01bb9b3c74d578b294ecdb50091f9 Mon Sep 17 00:00:00 2001 From: ronag Date: Sat, 22 Jan 2011 22:46:13 +0000 Subject: [PATCH] 2.0.0.2: Moved ATL init to shell. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@416 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- core/core.vcxproj | 37 ++++++++++++++++++++++++ core/core.vcxproj.filters | 39 ++++++++++++++++++++++++++ core/producer/flash/flash_producer.cpp | 6 +--- protocol/media.cpp | 4 ++- shell/main.cpp | 6 ++++ 5 files changed, 86 insertions(+), 6 deletions(-) diff --git a/core/core.vcxproj b/core/core.vcxproj index 3e123a8a4..377e08681 100644 --- a/core/core.vcxproj +++ b/core/core.vcxproj @@ -182,6 +182,11 @@ + + + + + @@ -288,6 +293,34 @@ ../../StdAfx.h ../../StdAfx.h + + ../../StdAfx.h + ../../StdAfx.h + + + ../../StdAfx.h + ../../StdAfx.h + NotUsing + NotUsing + + + ../../StdAfx.h + ../../StdAfx.h + NotUsing + NotUsing + + + true + true + NotUsing + NotUsing + + + ../../StdAfx.h + ../../StdAfx.h + NotUsing + NotUsing + ../../StdAfx.h ../../StdAfx.h @@ -319,6 +352,10 @@ true true + + true + true + diff --git a/core/core.vcxproj.filters b/core/core.vcxproj.filters index eed666a63..ca017582b 100644 --- a/core/core.vcxproj.filters +++ b/core/core.vcxproj.filters @@ -67,6 +67,12 @@ {eefc7a28-4013-458d-a91f-c822749984e8} + + {72cb7c9e-3b8c-4a45-8ee5-26f3dd091928} + + + {865b1b03-83c0-4c59-b896-f98cd3323c00} + @@ -168,6 +174,21 @@ Source\producer\screen + + Source\producer\silverlight + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + @@ -251,6 +272,21 @@ Source\producer\screen + + Source\producer\silverlight + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + + + Source\producer\silverlight\interop + @@ -268,6 +304,9 @@ Source\consumer\decklink\interop + + Source\producer\silverlight\interop + diff --git a/core/producer/flash/flash_producer.cpp b/core/producer/flash/flash_producer.cpp index 4382ef12b..a09fe5564 100644 --- a/core/producer/flash/flash_producer.cpp +++ b/core/producer/flash/flash_producer.cpp @@ -39,11 +39,7 @@ #include namespace caspar { namespace core { namespace flash { - -// NOTE: This is needed in order to make CComObject work since this is not a real ATL project. -CComModule _AtlModule; -extern __declspec(selectany) CAtlModule* _pAtlModule = &_AtlModule; - + class flash_renderer { struct co_init diff --git a/protocol/media.cpp b/protocol/media.cpp index 15fb0b9b5..359635b50 100644 --- a/protocol/media.cpp +++ b/protocol/media.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -38,7 +39,8 @@ safe_ptr create_producer(const std::vector& (&core::image::create_image_producer) (&core::create_decklink_producer) (&core::create_color_producer) - (&core::create_screen_producer); + (&core::create_screen_producer) + (&core::create_silverlight_producer); if(params.empty()) BOOST_THROW_EXCEPTION(invalid_argument() << arg_name_info("params") << arg_value_info("")); diff --git a/shell/main.cpp b/shell/main.cpp index 9cf50e9ad..2c36ce397 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -40,10 +40,16 @@ #include #include +#include + using namespace caspar; using namespace caspar::core; using namespace caspar::protocol; +// NOTE: This is needed in order to make CComObject work since this is not a real ATL project. +CComModule _AtlModule; +extern __declspec(selectany) CAtlModule* _pAtlModule = &_AtlModule; + class win32_handler_tbb_installer : public tbb::task_scheduler_observer { public: -- 2.39.2