mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the print info.
This commit is contained in:
parent
0e9c9db3f4
commit
44f5efda21
2 changed files with 4 additions and 4 deletions
|
@ -283,7 +283,7 @@ int main(int argc, char** argv)
|
||||||
goto rtmp_destroy;
|
goto rtmp_destroy;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
srs_human_trace("drop message size=%dB", size);
|
srs_human_trace("drop message type=%d, size=%dB", type, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2595,8 +2595,8 @@ int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* data, int
|
||||||
|
|
||||||
u_int32_t pts;
|
u_int32_t pts;
|
||||||
if (srs_utils_parse_timestamp(timestamp, type, data, size, &pts) != 0) {
|
if (srs_utils_parse_timestamp(timestamp, type, data, size, &pts) != 0) {
|
||||||
srs_human_trace("Video packet type=%s, dts=%d, pts=%d, size=%d, DecodeError",
|
srs_human_trace("Rtmp packet type=%s, dts=%d, size=%d, DecodeError",
|
||||||
srs_human_flv_tag_type2string(type), timestamp, pts, size
|
srs_human_flv_tag_type2string(type), timestamp, size
|
||||||
);
|
);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -2635,7 +2635,7 @@ int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* data, int
|
||||||
srs_freep(amf0_str);
|
srs_freep(amf0_str);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
srs_human_trace("Unknown packet type=%#x, dts=%d, pts=%d, size=%d",
|
srs_human_trace("Rtmp packet type=%#x, dts=%d, pts=%d, size=%d",
|
||||||
type, timestamp, pts, size);
|
type, timestamp, pts, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue