mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
move some consts to kernel consts
This commit is contained in:
parent
073d900674
commit
736ec48c71
13 changed files with 46 additions and 35 deletions
|
@ -1405,8 +1405,8 @@ SrsConfDirective* SrsConfig::get_vhost(string vhost)
|
|||
}
|
||||
}
|
||||
|
||||
if (vhost != RTMP_VHOST_DEFAULT) {
|
||||
return get_vhost(RTMP_VHOST_DEFAULT);
|
||||
if (vhost != SRS_CONSTS_RTMP_DEFAULT_VHOST) {
|
||||
return get_vhost(SRS_CONSTS_RTMP_DEFAULT_VHOST);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -1575,7 +1575,7 @@ int SrsConfig::get_chunk_size(string vhost)
|
|||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return SRS_CONF_DEFAULT_CHUNK_SIZE;
|
||||
return SRS_CONSTS_RTMP_SRS_CHUNK_SIZE;
|
||||
}
|
||||
|
||||
conf = conf->get("chunk_size");
|
||||
|
@ -1584,7 +1584,7 @@ int SrsConfig::get_chunk_size(string vhost)
|
|||
// use the global instead.
|
||||
conf = root->get("chunk_size");
|
||||
if (!conf) {
|
||||
return SRS_CONF_DEFAULT_CHUNK_SIZE;
|
||||
return SRS_CONSTS_RTMP_SRS_CHUNK_SIZE;
|
||||
}
|
||||
|
||||
return ::atoi(conf->arg0().c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue