mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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 != "mss" && n != "latency" && n != "recvlatency"
|
||||||
&& n != "peerlatency" && n != "tlpkdrop" && n != "connect_timeout"
|
&& n != "peerlatency" && n != "tlpkdrop" && n != "connect_timeout"
|
||||||
&& n != "sendbuf" && n != "recvbuf" && n != "payloadsize"
|
&& 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") {
|
&& n != "tlpktdrop" && n != "tsbpdmode") {
|
||||||
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "illegal srt_server.%s", n.c_str());
|
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();
|
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* SrsConfig::get_srt(std::string vhost)
|
||||||
{
|
{
|
||||||
SrsConfDirective* conf = get_vhost(vhost);
|
SrsConfDirective* conf = get_vhost(vhost);
|
||||||
|
|
|
@ -660,8 +660,6 @@ public:
|
||||||
virtual int get_srto_payloadsize();
|
virtual int get_srto_payloadsize();
|
||||||
// Get the default app.
|
// Get the default app.
|
||||||
virtual std::string get_default_app_name();
|
virtual std::string get_default_app_name();
|
||||||
// Get the mix_correct
|
|
||||||
virtual bool get_srt_mix_correct();
|
|
||||||
private:
|
private:
|
||||||
SrsConfDirective* get_srt(std::string vhost);
|
SrsConfDirective* get_srt(std::string vhost);
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue