Added load balancer input

This commit is contained in:
Thulinma 2017-01-15 23:42:56 +01:00
parent f5faa61ed4
commit 9cc2f75a8e
4 changed files with 108 additions and 0 deletions

View file

@ -286,6 +286,11 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
//finally, unlock the config semaphore
configLock.post();
if (isProvider){
//Set environment variable so we can know if we have a provider when re-exec'ing.
setenv("MISTPROVIDER", "1", 1);
}
INFO_MSG("Starting %s -s %s %s", player_bin.c_str(), streamname.c_str(), filename.c_str());
char * argv[30] = {(char *)player_bin.c_str(), (char *)"-s", (char *)streamname.c_str(), (char *)filename.c_str()};
int argNum = 3;