leon 1 mese fa
parent
commit
c538b0d029
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/main.cpp

+ 4 - 0
src/main.cpp

@@ -5,5 +5,9 @@ int main()
 {
     std::shared_ptr<Node::BaseNode> node1 = std::make_shared<Node::StreamNode>("test", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101");
     node1->start();
+    while(true)
+    {
+        std::this_thread::sleep_for(std::chrono::seconds(1));
+    }
     return 0;
 }