Enable Parameters on TSSRT listener

This commit is contained in:
Matthew James 2022-07-22 00:44:28 +08:00 committed by Thulinma
parent 1c6a483e49
commit 0430a644df
4 changed files with 9 additions and 7 deletions

View file

@ -137,7 +137,9 @@ namespace Mist{
HTTP::URL u(source);
INFO_MSG("Parsed url: %s", u.getUrl().c_str());
if (Socket::interpretSRTMode(u) == "listener"){
sSock = Socket::SRTServer(u.getPort(), u.host, false);
std::map<std::string, std::string> arguments;
HTTP::parseVars(u.args, arguments);
sSock = Socket::SRTServer(u.getPort(), u.host, arguments, false);
struct sigaction new_action;
struct sigaction cur_action;
new_action.sa_sigaction = signal_handler;