mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the get port, return a vector<string> contains ports.
This commit is contained in:
parent
1243d962b8
commit
96e0e699dd
4 changed files with 40 additions and 22 deletions
|
@ -232,9 +232,9 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
SrsConfDirective* listen = _srs_config->get_listen();
|
||||
srs_assert(listen->args.size() > 0);
|
||||
std::string port = listen->arg0();
|
||||
std::vector<std::string> ports = _srs_config->get_listen();
|
||||
srs_assert(ports.size() > 0);
|
||||
std::string port = ports[0];
|
||||
|
||||
std::string output = _srs_config->get_engine_output(engine);
|
||||
// output stream, to other/self server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue