mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Upgrade libsrt from 1.4.1 to 1.5.1. v6.0.12 (#3362)
Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
7a56208f2f
commit
fe086dfc31
143 changed files with 38185 additions and 15108 deletions
|
|
@ -7599,7 +7599,7 @@ unsigned short SrsConfig::get_srt_listen_port()
|
|||
return (unsigned short)atoi(conf->arg0().c_str());
|
||||
}
|
||||
|
||||
int SrsConfig::get_srto_maxbw()
|
||||
int64_t SrsConfig::get_srto_maxbw()
|
||||
{
|
||||
SRS_OVERWRITE_BY_ENV_INT("srs.srt_server.maxbw"); // SRS_SRT_SERVER_MAXBW
|
||||
|
||||
|
|
@ -7613,7 +7613,7 @@ int SrsConfig::get_srto_maxbw()
|
|||
if (!conf || conf->arg0().empty()) {
|
||||
return DEFAULT;
|
||||
}
|
||||
return atoi(conf->arg0().c_str());
|
||||
return atoll(conf->arg0().c_str());
|
||||
}
|
||||
|
||||
int SrsConfig::get_srto_mss()
|
||||
|
|
|
|||
|
|
@ -655,7 +655,7 @@ public:
|
|||
// Get the srt service listen port
|
||||
virtual unsigned short get_srt_listen_port();
|
||||
// Get the srt SRTO_MAXBW, max bandwith, default is -1.
|
||||
virtual int get_srto_maxbw();
|
||||
virtual int64_t get_srto_maxbw();
|
||||
// Get the srt SRTO_MSS, Maximum Segment Size, default is 1500.
|
||||
virtual int get_srto_mss();
|
||||
// Get the srt SRTO_TSBPDMODE, timestamp base packet delivery mode, default is false.
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ srs_error_t SrsSrtAcceptor::set_srt_opt()
|
|||
srs_error_t err = srs_success;
|
||||
|
||||
if ((err = srs_srt_set_maxbw(listener_->fd(), _srs_config->get_srto_maxbw())) != srs_success) {
|
||||
return srs_error_wrap(err, "set opt maxbw=%d failed", _srs_config->get_srto_maxbw());
|
||||
return srs_error_wrap(err, "set opt maxbw=%" PRId64 " failed", _srs_config->get_srto_maxbw());
|
||||
}
|
||||
|
||||
if ((err = srs_srt_set_mss(listener_->fd(), _srs_config->get_srto_mss())) != srs_success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue