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

@ -740,7 +740,7 @@ namespace Mist{
/*LTS-START*/
if(Triggers::shouldTrigger("RTMP_PUSH_REWRITE")){
std::string payload = reqUrl+"\n" + getConnectedHost();
std::string newUrl = "";
std::string newUrl = reqUrl;
Triggers::doTrigger("RTMP_PUSH_REWRITE", payload, "", false, newUrl);
if (!newUrl.size()){
FAIL_MSG("Push from %s to URL %s rejected - RTMP_PUSH_REWRITE trigger blanked the URL", getConnectedHost().c_str(), reqUrl.c_str());