1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add librtmp demo srs_publish

This commit is contained in:
winlin 2014-03-01 23:24:53 +08:00
parent aa5d28ed85
commit 713b05541b
12 changed files with 172 additions and 34 deletions

View file

@ -116,7 +116,7 @@ int SrsRequest::discovery_app()
srs_verbose("discovery vhost=%s", vhost.c_str());
}
port = RTMP_DEFAULT_PORTS;
port = RTMP_DEFAULT_PORT;
if ((pos = vhost.find(":")) != std::string::npos) {
port = vhost.substr(pos + 1);
vhost = vhost.substr(0, pos);