LTS Commits

This commit is contained in:
Thulinma 2015-04-05 21:38:36 +02:00
parent f24d97b510
commit 4bdbd82f66
72 changed files with 8245 additions and 105 deletions

View file

@ -79,6 +79,12 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
IPC::semaphore configLock("!mistConfLock", O_CREAT | O_RDWR, ACCESSPERMS, 1);
configLock.wait();
DTSC::Scan config = DTSC::Scan(mistConfOut.mapped, mistConfOut.len);
/*LTS-START*/
if (config.getMember("hardlimit_active")) {
return false;
}
/*LTS-END*/
sanitizeName(streamname);
std::string smp = streamname.substr(0, streamname.find_first_of("+ "));
@ -89,6 +95,13 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
configLock.post();//unlock the config semaphore
return false;
}
/*LTS-START*/
if (stream_cfg.getMember("hardlimit_active")) {
return false;
}
/*LTS-END*/
//If starting without filename parameter, check if the stream is already active.
//If yes, don't activate again to prevent duplicate inputs.