mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge SRS3.0
This commit is contained in:
commit
8c1eca98b0
23 changed files with 82 additions and 76 deletions
|
@ -57,7 +57,7 @@ using namespace std;
|
|||
#include <srs_kernel_utility.hpp>
|
||||
#include <srs_rtmp_stack.hpp>
|
||||
|
||||
using namespace _srs_internal;
|
||||
using namespace srs_internal;
|
||||
|
||||
// @global the version to identify the core.
|
||||
const char* _srs_version = "XCORE-" RTMP_SIG_SRS_SERVER;
|
||||
|
@ -92,7 +92,7 @@ bool is_common_space(char ch)
|
|||
return (ch == ' ' || ch == '\t' || ch == SRS_CR || ch == SRS_LF);
|
||||
}
|
||||
|
||||
namespace _srs_internal
|
||||
namespace srs_internal
|
||||
{
|
||||
SrsConfigBuffer::SrsConfigBuffer()
|
||||
{
|
||||
|
@ -5272,20 +5272,20 @@ int SrsConfig::get_time_jitter(string vhost)
|
|||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
return _srs_time_jitter_string2int(DEFAULT);
|
||||
return srs_time_jitter_string2int(DEFAULT);
|
||||
}
|
||||
|
||||
conf = conf->get("play");
|
||||
if (!conf) {
|
||||
return _srs_time_jitter_string2int(DEFAULT);
|
||||
return srs_time_jitter_string2int(DEFAULT);
|
||||
}
|
||||
|
||||
conf = conf->get("time_jitter");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return _srs_time_jitter_string2int(DEFAULT);
|
||||
return srs_time_jitter_string2int(DEFAULT);
|
||||
}
|
||||
|
||||
return _srs_time_jitter_string2int(conf->arg0());
|
||||
return srs_time_jitter_string2int(conf->arg0());
|
||||
}
|
||||
|
||||
bool SrsConfig::get_mix_correct(string vhost)
|
||||
|
@ -7505,15 +7505,15 @@ int SrsConfig::get_dvr_time_jitter(string vhost)
|
|||
SrsConfDirective* conf = get_dvr(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return _srs_time_jitter_string2int(DEFAULT);
|
||||
return srs_time_jitter_string2int(DEFAULT);
|
||||
}
|
||||
|
||||
conf = conf->get("time_jitter");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return _srs_time_jitter_string2int(DEFAULT);
|
||||
return srs_time_jitter_string2int(DEFAULT);
|
||||
}
|
||||
|
||||
return _srs_time_jitter_string2int(conf->arg0());
|
||||
return srs_time_jitter_string2int(conf->arg0());
|
||||
}
|
||||
|
||||
bool SrsConfig::get_http_api_enabled()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue