Decreased trigger verbosity, fixed RTMP_PUSH_REWRITE and PUSH_OUT_START triggers not properly ignoring response when ran in non-blocking mode.

This commit is contained in:
Thulinma 2020-09-24 16:06:56 +02:00
parent c2ecab2e6b
commit 52a10eaea7
3 changed files with 3 additions and 3 deletions

View file

@ -560,7 +560,7 @@ JSON::Value Util::getInputBySource(const std::string &filename, bool isProvider)
pid_t Util::startPush(const std::string &streamname, std::string &target){
if (Triggers::shouldTrigger("PUSH_OUT_START", streamname)){
std::string payload = streamname + "\n" + target;
std::string filepath_response;
std::string filepath_response = target;
Triggers::doTrigger("PUSH_OUT_START", payload, streamname.c_str(), false, filepath_response);
target = filepath_response;
}

View file

@ -209,7 +209,7 @@ namespace Triggers{
if (!defaultResponse.size()){defaultResponse = "true";}
if (isHandled){
INFO_MSG("%s trigger handled by %s", type.c_str(), uri.c_str());
VERYHIGH_MSG("%s trigger handled by %s", type.c_str(), uri.c_str());
if (dryRun){return true;}
if (sync){
response = handleTrigger(type, uri, payload, sync, defaultResponse); // do it.