Stop limits and triggers from occurring when filename is being overridden in startInput calls

This commit is contained in:
Thulinma 2016-09-28 16:00:35 +02:00
parent 11d8ef922d
commit 1d2e8f790b

View file

@ -178,6 +178,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
DEBUG_MSG(DLVL_HIGH, "Stream %s not configured - attempting to ignore", streamname.c_str());
}
/*LTS-START*/
if (!filename.size()){
if (stream_cfg && stream_cfg.getMember("hardlimit_active")) {
return false;
}
@ -189,6 +190,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
if(Triggers::shouldTrigger("STREAM_SOURCE", smp)){
Triggers::doTrigger("STREAM_SOURCE", streamname, smp, false, filename);
}
}
/*LTS-END*/