mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
fix typo
This commit is contained in:
parent
f2f02b06d5
commit
38a683192a
2 changed files with 4 additions and 4 deletions
|
@ -413,7 +413,7 @@ SrsProtocol::SrsProtocol(ISrsProtocolReaderWriter* io)
|
|||
// each chunk consumers atleast 2 iovs
|
||||
srs_assert(nb_out_iovs >= 2);
|
||||
|
||||
warned_c0c3_cry = false;
|
||||
warned_c0c3_cache_dry = false;
|
||||
}
|
||||
|
||||
SrsProtocol::~SrsProtocol()
|
||||
|
@ -628,10 +628,10 @@ int SrsProtocol::do_send_messages(SrsMessage** msgs, int nb_msgs)
|
|||
int c0c3_left = SRS_CONSTS_C0C3_HEADERS_MAX - c0c3_cache_index;
|
||||
if (c0c3_left < SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE) {
|
||||
// only warn once for a connection.
|
||||
if (!warned_c0c3_cry) {
|
||||
if (!warned_c0c3_cache_dry) {
|
||||
srs_warn("c0c3 cache header too small, recoment to %d",
|
||||
SRS_CONSTS_C0C3_HEADERS_MAX + SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE);
|
||||
warned_c0c3_cry = true;
|
||||
warned_c0c3_cache_dry = true;
|
||||
}
|
||||
|
||||
// when c0c3 cache dry,
|
||||
|
|
|
@ -226,7 +226,7 @@ private:
|
|||
*/
|
||||
char out_c0c3_caches[SRS_CONSTS_C0C3_HEADERS_MAX];
|
||||
// whether warned user to increase the c0c3 header cache.
|
||||
bool warned_c0c3_cry;
|
||||
bool warned_c0c3_cache_dry;
|
||||
/**
|
||||
* output chunk size, default to 128, set by config.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue