mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: remove mix_correct
This commit is contained in:
parent
a5ac7cfe37
commit
43d98d0b1c
2 changed files with 1 additions and 18 deletions
|
@ -2546,7 +2546,7 @@ srs_error_t SrsConfig::check_normal_config()
|
|||
&& n != "mss" && n != "latency" && n != "recvlatency"
|
||||
&& n != "peerlatency" && n != "tlpkdrop" && n != "connect_timeout"
|
||||
&& n != "sendbuf" && n != "recvbuf" && n != "payloadsize"
|
||||
&& n != "default_app" && n != "mix_correct" && n != "sei_filter"
|
||||
&& n != "default_app" && n != "sei_filter"
|
||||
&& n != "tlpktdrop" && n != "tsbpdmode") {
|
||||
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "illegal srt_server.%s", n.c_str());
|
||||
}
|
||||
|
@ -6978,21 +6978,6 @@ string SrsConfig::get_default_app_name()
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
bool SrsConfig::get_srt_mix_correct()
|
||||
{
|
||||
static bool DEFAULT = true;
|
||||
SrsConfDirective* conf = root->get("srt_server");
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
conf = conf->get("mix_correct");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return DEFAULT;
|
||||
}
|
||||
return SRS_CONF_PERFER_TRUE(conf->arg0());
|
||||
}
|
||||
|
||||
SrsConfDirective* SrsConfig::get_srt(std::string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue