1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SRT: remove rtmp_to_srt

This commit is contained in:
hondaxiao 2022-05-30 20:03:11 +08:00 committed by winlin
parent 43d98d0b1c
commit fbc6eebe18
7 changed files with 1 additions and 163 deletions

View file

@ -2883,7 +2883,7 @@ srs_error_t SrsConfig::check_normal_config()
} else if (n == "srt") {
for (int j = 0; j < (int)conf->directives.size(); j++) {
string m = conf->at(j)->name;
if (m != "enabled" && m != "rtmp_to_srt" && m != "srt_to_rtmp") {
if (m != "enabled" && m != "srt_to_rtmp") {
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "illegal vhost.srt.%s of %s", m.c_str(), vhost->arg0().c_str());
}
}
@ -7019,24 +7019,6 @@ bool SrsConfig::get_srt_to_rtmp(std::string vhost)
return SRS_CONF_PERFER_FALSE(conf->arg0());
}
bool SrsConfig::get_srt_from_rtmp(std::string vhost)
{
static bool DEFAULT = false;
SrsConfDirective* conf = get_srt(vhost);
if (!conf) {
return DEFAULT;
}
conf = conf->get("rtmp_to_srt");
if (!conf || conf->arg0().empty()) {
return DEFAULT;
}
return SRS_CONF_PERFER_FALSE(conf->arg0());
}
bool SrsConfig::get_http_stream_enabled()
{
SrsConfDirective* conf = root->get("http_server");