mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
rename from get_ingest to get_ingest_by_id of config
This commit is contained in:
parent
e432fe931f
commit
9ed3421586
3 changed files with 7 additions and 3 deletions
|
@ -624,6 +624,10 @@ int SrsConfig::reload()
|
|||
}
|
||||
srs_trace("vhost %s reload transcode success.", vhost.c_str());
|
||||
}
|
||||
// transcode, many per vhost.
|
||||
/*if ((ret = reload_transcode(new_vhost, old_vhost)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}*/
|
||||
// ingest, many per vhost.
|
||||
if ((ret = reload_ingest(new_vhost, old_vhost)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
|
@ -1768,7 +1772,7 @@ void SrsConfig::get_ingesters(std::string vhost, std::vector<SrsConfDirective*>&
|
|||
return;
|
||||
}
|
||||
|
||||
SrsConfDirective* SrsConfig::get_ingest(std::string vhost, std::string ingest_id)
|
||||
SrsConfDirective* SrsConfig::get_ingest_by_id(std::string vhost, std::string ingest_id)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
|
|
|
@ -194,7 +194,7 @@ public:
|
|||
// ingest section
|
||||
public:
|
||||
virtual void get_ingesters(std::string vhost, std::vector<SrsConfDirective*>& ingeters);
|
||||
virtual SrsConfDirective* get_ingest(std::string vhost, std::string ingest_id);
|
||||
virtual SrsConfDirective* get_ingest_by_id(std::string vhost, std::string ingest_id);
|
||||
virtual bool get_ingest_enabled(SrsConfDirective* ingest);
|
||||
virtual std::string get_ingest_ffmpeg(SrsConfDirective* ingest);
|
||||
virtual std::string get_ingest_input_type(SrsConfDirective* ingest);
|
||||
|
|
|
@ -429,7 +429,7 @@ int SrsIngester::on_reload_ingest_added(string vhost, string ingest_id)
|
|||
int ret = ERROR_SUCCESS;
|
||||
|
||||
SrsConfDirective* _vhost = _srs_config->get_vhost(vhost);
|
||||
SrsConfDirective* _ingester = _srs_config->get_ingest(vhost, ingest_id);
|
||||
SrsConfDirective* _ingester = _srs_config->get_ingest_by_id(vhost, ingest_id);
|
||||
|
||||
if ((ret = parse_engines(_vhost, _ingester)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue