mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
srs_info use not available variable (#813)
srs_info use not available variable. Variable has been removed or changed.
This commit is contained in:
parent
9ab5e6a916
commit
8ad934a8a4
7 changed files with 27 additions and 24 deletions
|
@ -433,7 +433,7 @@ int SrsHlsMuxer::segment_open()
|
|||
srs_error("open hls muxer failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
srs_info("open HLS muxer success. path=%s, tmp=%s", current->full_path.c_str(), tmp_file.c_str());
|
||||
srs_info("open HLS muxer success. path=%s, tmp=%s", current->fullpath().c_str(), tmp_file.c_str());
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -463,7 +463,7 @@ bool SrsHlsMuxer::is_segment_overflow()
|
|||
// use N% deviation, to smoother.
|
||||
double deviation = hls_ts_floor? SRS_HLS_FLOOR_REAP_PERCENT * deviation_ts * hls_fragment : 0.0;
|
||||
srs_info("hls: dur=%.2f, tar=%.2f, dev=%.2fms/%dp, frag=%.2f",
|
||||
current->duration, hls_fragment + deviation, deviation, deviation_ts, hls_fragment);
|
||||
current->duration(), hls_fragment + deviation, deviation, deviation_ts, hls_fragment);
|
||||
|
||||
return current->duration() >= (hls_fragment + deviation) * 1000;
|
||||
}
|
||||
|
@ -486,7 +486,7 @@ bool SrsHlsMuxer::is_segment_absolutely_overflow()
|
|||
// use N% deviation, to smoother.
|
||||
double deviation = hls_ts_floor? SRS_HLS_FLOOR_REAP_PERCENT * deviation_ts * hls_fragment : 0.0;
|
||||
srs_info("hls: dur=%.2f, tar=%.2f, dev=%.2fms/%dp, frag=%.2f",
|
||||
current->duration, hls_fragment + deviation, deviation, deviation_ts, hls_fragment);
|
||||
current->duration(), hls_fragment + deviation, deviation, deviation_ts, hls_fragment);
|
||||
|
||||
return current->duration() >= (hls_aof_ratio * hls_fragment + deviation) * 1000;
|
||||
}
|
||||
|
@ -582,10 +582,9 @@ int SrsHlsMuxer::segment_close()
|
|||
if ((ret = async->execute(new SrsDvrAsyncCallOnHlsNotify(_srs_context->get_id(), req, current->uri))) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
srs_info("%s reap ts segment, sequence_no=%d, uri=%s, duration=%.2f, start=%"PRId64,
|
||||
log_desc.c_str(), current->sequence_no, current->uri.c_str(), current->duration,
|
||||
current->segment_start_dts);
|
||||
//current->start_dts is private . log_desc is removed?
|
||||
srs_info("eap ts segment, sequence_no=%d, uri=%s, duration=%.2f, start=%"PRId64,
|
||||
current->sequence_no, current->uri.c_str(), current->duration());
|
||||
|
||||
// close the muxer of finished segment.
|
||||
srs_freep(current->tscw);
|
||||
|
@ -998,7 +997,8 @@ int SrsHls::cycle()
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
srs_info("hls cycle for source %d", source->source_id());
|
||||
//source is removed?
|
||||
//srs_info("hls cycle for source %d", source->source_id());
|
||||
|
||||
if (last_update_time <= 0) {
|
||||
last_update_time = srs_get_system_time_ms();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue