mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the macro.
This commit is contained in:
parent
bc756d6ad9
commit
73c310cd2e
9 changed files with 43 additions and 43 deletions
|
@ -2128,13 +2128,13 @@ string SrsConfig::get_ingest_input_type(SrsConfDirective* ingest)
|
|||
SrsConfDirective* conf = ingest->get("input");
|
||||
|
||||
if (!conf) {
|
||||
return SRS_INGEST_TYPE_FILE;
|
||||
return SRS_RTMP_INGEST_TYPE_FILE;
|
||||
}
|
||||
|
||||
conf = conf->get("type");
|
||||
|
||||
if (!conf) {
|
||||
return SRS_INGEST_TYPE_FILE;
|
||||
return SRS_RTMP_INGEST_TYPE_FILE;
|
||||
}
|
||||
|
||||
return conf->arg0();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue