]> git.sesse.net Git - casparcg/blobdiff - core/video_channel.cpp
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / core / video_channel.cpp
index d5d2ecd81d8343f6bba41f40832e7491d7ce45ad..67eebfde816cfdef6da6b4031ec5cda55d7f0d9f 100644 (file)
@@ -30,6 +30,7 @@
 #include "producer/stage.h"\r
 \r
 #include <common/diagnostics/graph.h>\r
+#include <common/env.h>\r
 \r
 #include <string>\r
 \r
@@ -58,6 +59,9 @@ public:
                graph_->set_text(print());\r
                diagnostics::register_graph(graph_);\r
 \r
+               for(int n = 0; n < std::max(1, env::properties().get("configuration.pipeline-tokens", 2)); ++n)\r
+                       stage_->spawn_token();\r
+\r
                CASPAR_LOG(info) << print() << " Successfully Initialized.";\r
        }\r
        \r