Browse Source

link node

leon 1 month ago
parent
commit
82c2a255a3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main.cpp

+ 1 - 0
src/main.cpp

@@ -5,6 +5,7 @@ int main()
 {
     std::shared_ptr<Node::BaseNode> src_node   = std::make_shared<Node::StreamNode>("src", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101");
     std::shared_ptr<Node::BaseNode> infer_node = std::make_shared<Node::InferNode>("infer");
+    Node::LinkNode(src_node, infer_node);
     infer_node->start();
     src_node->start();
     while(true)