Fix for correct INTERNAL_ONLY handling.

This commit is contained in:
Thulinma 2018-02-07 10:46:31 +01:00
parent fd60a6b8d3
commit c1711ef0e0

View file

@ -279,7 +279,8 @@ 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 (filename.substr(0, 21) == "push://INTERNAL_ONLY:"){
if (pid && filename.substr(0, 21) == "push://INTERNAL_ONLY:"){
Util::Procs::setHandler();
Util::Procs::remember(pid);
}
}else{