mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the config consts
This commit is contained in:
parent
736ec48c71
commit
baa20b2f31
4 changed files with 36 additions and 36 deletions
|
@ -284,7 +284,7 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (input_type == SRS_AUTO_INGEST_TYPE_FILE) {
|
||||
if (input_type == SRS_CONF_DEFAULT_INGEST_TYPE_FILE) {
|
||||
std::string input_url = _srs_config->get_ingest_input_url(ingest);
|
||||
if (input_url.empty()) {
|
||||
ret = ERROR_ENCODER_NO_INPUT;
|
||||
|
@ -298,7 +298,7 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
|
|||
if ((ret = ffmpeg->initialize(input_url, output, log_file)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
} else if (input_type == SRS_AUTO_INGEST_TYPE_STREAM) {
|
||||
} else if (input_type == SRS_CONF_DEFAULT_INGEST_TYPE_STREAM) {
|
||||
std::string input_url = _srs_config->get_ingest_input_url(ingest);
|
||||
if (input_url.empty()) {
|
||||
ret = ERROR_ENCODER_NO_INPUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue