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

use the right int type for port.

This commit is contained in:
winlin 2015-09-24 18:33:07 +08:00
parent 1c7d5f1852
commit d8f18aee37
20 changed files with 105 additions and 149 deletions

View file

@ -63,7 +63,7 @@ struct Context
std::string tcUrl;
std::string host;
std::string ip;
std::string port;
int port;
std::string vhost;
std::string app;
std::string stream;
@ -509,9 +509,7 @@ int srs_librtmp_context_connect(Context* context)
srs_assert(context->skt);
std::string ip = context->ip;
int port = ::atoi(context->port.c_str());
if ((ret = context->skt->connect(ip.c_str(), port)) != ERROR_SUCCESS) {
if ((ret = context->skt->connect(ip.c_str(), context->port)) != ERROR_SUCCESS) {
return ret;
}