From a9ddc377895f5feb898c162de0f6b0363cf94276 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 25 Aug 2022 10:26:38 +0200 Subject: [PATCH] =?UTF-8?q?Why,=20Haivision,=20why=3F=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/socket_srt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/socket_srt.cpp b/lib/socket_srt.cpp index 3e03bce4..6d1d5695 100644 --- a/lib/socket_srt.cpp +++ b/lib/socket_srt.cpp @@ -392,6 +392,10 @@ namespace Socket{ } } params["payloadsize"] = asString(chunkTransmitSize); + //This line forces the transmission type to live if unset. + //Live is actually the default, but not explicitly setting the option means + //that all other defaults do not get applied either, which is bad. + if (!params.count("transtype")){params["transtype"] = "live";} } int SRTConnection::preConfigureSocket(){