]> git.sesse.net Git - casparcg/blobdiff - modules/bluefish/bluefish.cpp
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / modules / bluefish / bluefish.cpp
index 7150bc1895bbbbf77af79abcffb1f0d8ea8801ab..2e39229aaef51983a45e8a60f4098a38bb698567 100644 (file)
@@ -1,3 +1,22 @@
+/*\r
+* copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
+*\r
+*  This file is part of CasparCG.\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
+*\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
+*/\r
 #include "bluefish.h"\r
 \r
 #include <core/consumer/frame_consumer.h>\r
@@ -9,9 +28,9 @@ void init_bluefish()
        try\r
        {\r
                blue_initialize();\r
+               core::register_consumer_factory([](const std::vector<std::wstring>& params){return create_bluefish_consumer(params);});\r
        }\r
        catch(...){}\r
-       core::register_consumer_factory(create_bluefish_consumer);\r
 }\r
 \r
 }
\ No newline at end of file