From 08107b606bc8764e16f0087dd875d76da50df899 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 18 Jul 2010 13:32:26 +0200 Subject: [PATCH] Daadwerkelijke restarten werkend en getest --- Admin/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Admin/main.cpp b/Admin/main.cpp index 26255ef9..be676432 100644 --- a/Admin/main.cpp +++ b/Admin/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include int getparam (std::string input) { if(input.size() <= 3) { return -1;} @@ -49,8 +50,9 @@ void writesh( unsigned int values[], std::string filename ) { if (values[4] != 0) { shfile << "-r " << values[4] << " "; } if (values[5] != 0) { shfile << "-ab " << values[5] << " "; } if (values[6] != 0) { shfile << "-ar " << values[6] << " "; } - shfile << "rtmp://projectlivestream.com/oflaDemo/test"; + shfile << "rtmp://projectlivestream.com/oflaDemo/test &"; shfile.close(); + system("sh ./run.sh"); } int main() {