]> git.sesse.net Git - casparcg/blobdiff - modules/flash/flash.cpp
2.0.2: Updated file info headers.
[casparcg] / modules / flash / flash.cpp
index bfd8d7e97cb92d9870a2a8b6a2b5910acfd6c27b..8c072b7b8bd455fc29b22ab45226af6b9aaa4b0a 100644 (file)
@@ -1,37 +1,39 @@
 /*\r
-* copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
+* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>\r
 *\r
-*  This file is part of CasparCG.\r
+* This file is part of CasparCG (www.casparcg.com).\r
 *\r
-*    CasparCG is free software: you can redistribute it and/or modify\r
-*    it under the terms of the GNU General Public License as published by\r
-*    the Free Software Foundation, either version 3 of the License, or\r
-*    (at your option) any later version.\r
+* CasparCG is free software: you can redistribute it and/or modify\r
+* it under the terms of the GNU General Public License as published by\r
+* the Free Software Foundation, either version 3 of the License, or\r
+* (at your option) any later version.\r
 *\r
-*    CasparCG is distributed in the hope that it will be useful,\r
-*    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-*    GNU General Public License for more details.\r
-\r
-*    You should have received a copy of the GNU General Public License\r
-*    along with CasparCG.  If not, see <http://www.gnu.org/licenses/>.\r
+* CasparCG is distributed in the hope that it will be useful,\r
+* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+* GNU General Public License for more details.\r
+*\r
+* You should have received a copy of the GNU General Public License\r
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
 *\r
+* Author: Robert Nagy, ronag89@gmail.com\r
 */\r
+\r
 #include "StdAfx.h"\r
 \r
 #include "flash.h"\r
 \r
 #include "producer/cg_producer.h"\r
 #include "producer/flash_producer.h"\r
-#include "producer/flash_producer.h"\r
 \r
 #include <common/env.h>\r
 \r
-namespace caspar{\r
+namespace caspar { namespace flash {\r
 \r
-void init_flash()\r
+void init()\r
 {\r
        core::register_producer_factory(create_ct_producer);\r
+       core::register_producer_factory(create_cg_producer);\r
 }\r
 \r
 std::wstring get_cg_version()\r
@@ -39,7 +41,7 @@ std::wstring get_cg_version()
        return L"Unknown";\r
 }\r
 \r
-std::wstring get_flash_version()\r
+std::wstring get_version()\r
 {              \r
        std::wstring version = L"Not found";\r
 #ifdef WIN32\r
@@ -62,4 +64,4 @@ std::wstring get_flash_version()
        return version;\r
 }\r
 \r
-}\r
+}}\r