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

Refine SrsBasicRtmpClient in time unit.

This commit is contained in:
winlin 2019-04-22 08:03:12 +08:00
parent c6dcc76fea
commit e436cc5665
10 changed files with 32 additions and 34 deletions

View file

@ -1275,8 +1275,8 @@ int SrsIngestHlsOutput::connect()
srs_trace("connect output=%s", url.c_str());
// connect host.
int64_t cto = srsu2ms(SRS_CONSTS_RTMP_TIMEOUT);
int64_t sto = srsu2ms(SRS_CONSTS_RTMP_PULSE);
srs_utime_t cto =SRS_CONSTS_RTMP_TIMEOUT;
srs_utime_t sto =SRS_CONSTS_RTMP_PULSE;
sdk = new SrsBasicRtmpClient(url, cto, sto);
if ((err = sdk->connect()) != srs_success) {
@ -1284,7 +1284,7 @@ int SrsIngestHlsOutput::connect()
ret = srs_error_code(err);
srs_freep(err);
close();
srs_error("mpegts: connect %s failed, cto=%" PRId64 ", sto=%" PRId64 ". ret=%d", url.c_str(), cto, sto, ret);
srs_error("mpegts: connect %s failed, cto=%dms, sto=%dms. ret=%d", url.c_str(), srsu2msi(cto), srsu2msi(sto), ret);
return ret;
}