TSSRT and TSRIST outputs in listen mode will now request not to be killed by the Comms library, since they handle multiple users

This commit is contained in:
Thulinma 2023-07-24 10:37:42 +02:00
parent 22e0036b8b
commit 41cf557b48
7 changed files with 11 additions and 5 deletions

View file

@ -2221,7 +2221,7 @@ namespace Mist{
onFail("Shutting down since this session is not allowed to view this stream");
statComm.unload();
return;
}
}
lastStats = now;

View file

@ -446,6 +446,7 @@ int main(int argc, char *argv[]){
sigaction(SIGUSR1, &new_action, NULL);
}
if (conf.getInteger("port") && conf.getString("interface").size()){
Comms::defaultCommFlags = COMM_STATUS_NOKILL;
if (rist_receiver_create(&rec_ctx, (rist_profile)conf.getInteger("profile"), &Mist::log_settings) != 0){
FAIL_MSG("Failed to create receiver context");

View file

@ -501,6 +501,7 @@ int main(int argc, char *argv[]){
if (oldSignal){WARN_MSG("Multiple signal handlers! I can't deal with this.");}
oldSignal = cur_action.sa_sigaction;
}
Comms::defaultCommFlags = COMM_STATUS_NOKILL;
Util::Procs::socketList.insert(server_socket.getSocket());
while (conf.is_active && server_socket.connected()){
Socket::SRTConnection S = server_socket.accept(false, "output");