mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine config comments, return the engines of transcode.
This commit is contained in:
parent
2293700728
commit
b4e2d70390
4 changed files with 43 additions and 20 deletions
|
@ -1932,10 +1932,12 @@ string SrsConfig::get_transcode_ffmpeg(SrsConfDirective* transcode)
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
void SrsConfig::get_transcode_engines(SrsConfDirective* transcode, vector<SrsConfDirective*>& engines)
|
||||
vector<SrsConfDirective*> SrsConfig::get_transcode_engines(SrsConfDirective* transcode)
|
||||
{
|
||||
vector<SrsConfDirective*> engines;
|
||||
|
||||
if (!transcode) {
|
||||
return;
|
||||
return engines;
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)transcode->directives.size(); i++) {
|
||||
|
@ -1946,7 +1948,7 @@ void SrsConfig::get_transcode_engines(SrsConfDirective* transcode, vector<SrsCon
|
|||
}
|
||||
}
|
||||
|
||||
return;
|
||||
return engines;
|
||||
}
|
||||
|
||||
bool SrsConfig::get_engine_enabled(SrsConfDirective* engine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue