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

For #307, support linux GSO for RTC

This commit is contained in:
winlin 2020-04-13 23:40:30 +08:00
parent b1438bf52c
commit 3b7240b8e0
4 changed files with 193 additions and 7 deletions

View file

@ -4803,7 +4803,15 @@ bool SrsConfig::get_rtc_server_gso()
return DEFAULT;
}
return SRS_CONF_PERFER_FALSE(conf->arg0());
bool v = SRS_CONF_PERFER_FALSE(conf->arg0());
#ifdef SRS_AUTO_OSX
if (v) {
srs_warn("GSO is for Linux only");
}
v = false;
#endif
return v;
}
SrsConfDirective* SrsConfig::get_rtc(string vhost)