Added singular mode override for inputs

This commit is contained in:
Ramoe 2018-04-04 14:03:49 +02:00 committed by Thulinma
parent b839a9f618
commit 33488da329
7 changed files with 56 additions and 35 deletions

View file

@ -244,7 +244,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
FAIL_MSG("Forking process for stream %s failed: %s", streamname.c_str(), strerror(errno));
return false;
}
if (pid && filename.substr(0, 21) == "push://INTERNAL_ONLY:"){
if (pid && overrides.count("singular")){
Util::Procs::setHandler();
Util::Procs::remember(pid);
}