mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Cache the large buffer allocation
This commit is contained in:
parent
6e9cb059b3
commit
4d0863468a
9 changed files with 135 additions and 133 deletions
|
@ -287,7 +287,10 @@ srs_error_t SrsRtcServer::initialize()
|
|||
bool rtp_cache = _srs_config->get_rtc_server_rtp_cache();
|
||||
_srs_rtp_cache->set_enabled(rtp_cache);
|
||||
|
||||
srs_trace("RTC server init ok, rtp_cache=%d", rtp_cache);
|
||||
bool rtp_msg_cache = _srs_config->get_rtc_server_rtp_msg_cache();
|
||||
_srs_rtp_msg_cache->set_enabled(rtp_msg_cache);
|
||||
|
||||
srs_trace("RTC server init ok, rc=%d, rmc=%d", rtp_cache, rtp_msg_cache);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue