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

refine log, add overflow log

This commit is contained in:
winlin 2014-05-16 13:31:59 +08:00
parent 47089f0e82
commit 4b8d3fe05f
2 changed files with 5 additions and 2 deletions

View file

@ -298,8 +298,8 @@ int SrsRtmpConn::stream_service_cycle()
}
bool enabled_cache = _srs_config->get_gop_cache(req->vhost);
srs_trace("source found, url=%s, enabled_cache=%d, edge=%d",
req->get_stream_url().c_str(), enabled_cache, vhost_is_edge);
srs_trace("source found, ip=%s, url=%s, enabled_cache=%d, edge=%d",
ip, req->get_stream_url().c_str(), enabled_cache, vhost_is_edge);
source->set_cache(enabled_cache);
switch (type) {

View file

@ -1157,6 +1157,9 @@ int SrsProtocol::read_message_header(SrsChunkStream* chunk, char fmt, int bh_siz
// milliseconds.
// in a word, 31bits timestamp is ok.
// convert extended timestamp to 31bits.
if (chunk->header.timestamp > 0x7fffffff) {
srs_warn("RTMP 31bits timestamp overflow, time=%"PRId64, chunk->header.timestamp);
}
chunk->header.timestamp &= 0x7fffffff;
// valid message