正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
@@ -413,7 +413,7 @@ SrsProtocol::SrsProtocol(ISrsProtocolReaderWriter* io) | @@ -413,7 +413,7 @@ SrsProtocol::SrsProtocol(ISrsProtocolReaderWriter* io) | ||
413 | // each chunk consumers atleast 2 iovs | 413 | // each chunk consumers atleast 2 iovs |
414 | srs_assert(nb_out_iovs >= 2); | 414 | srs_assert(nb_out_iovs >= 2); |
415 | 415 | ||
416 | - warned_c0c3_cry = false; | 416 | + warned_c0c3_cache_dry = false; |
417 | } | 417 | } |
418 | 418 | ||
419 | SrsProtocol::~SrsProtocol() | 419 | SrsProtocol::~SrsProtocol() |
@@ -628,10 +628,10 @@ int SrsProtocol::do_send_messages(SrsMessage** msgs, int nb_msgs) | @@ -628,10 +628,10 @@ int SrsProtocol::do_send_messages(SrsMessage** msgs, int nb_msgs) | ||
628 | int c0c3_left = SRS_CONSTS_C0C3_HEADERS_MAX - c0c3_cache_index; | 628 | int c0c3_left = SRS_CONSTS_C0C3_HEADERS_MAX - c0c3_cache_index; |
629 | if (c0c3_left < SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE) { | 629 | if (c0c3_left < SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE) { |
630 | // only warn once for a connection. | 630 | // only warn once for a connection. |
631 | - if (!warned_c0c3_cry) { | 631 | + if (!warned_c0c3_cache_dry) { |
632 | srs_warn("c0c3 cache header too small, recoment to %d", | 632 | srs_warn("c0c3 cache header too small, recoment to %d", |
633 | SRS_CONSTS_C0C3_HEADERS_MAX + SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE); | 633 | SRS_CONSTS_C0C3_HEADERS_MAX + SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE); |
634 | - warned_c0c3_cry = true; | 634 | + warned_c0c3_cache_dry = true; |
635 | } | 635 | } |
636 | 636 | ||
637 | // when c0c3 cache dry, | 637 | // when c0c3 cache dry, |
@@ -226,7 +226,7 @@ private: | @@ -226,7 +226,7 @@ private: | ||
226 | */ | 226 | */ |
227 | char out_c0c3_caches[SRS_CONSTS_C0C3_HEADERS_MAX]; | 227 | char out_c0c3_caches[SRS_CONSTS_C0C3_HEADERS_MAX]; |
228 | // whether warned user to increase the c0c3 header cache. | 228 | // whether warned user to increase the c0c3 header cache. |
229 | - bool warned_c0c3_cry; | 229 | + bool warned_c0c3_cache_dry; |
230 | /** | 230 | /** |
231 | * output chunk size, default to 128, set by config. | 231 | * output chunk size, default to 128, set by config. |
232 | */ | 232 | */ |
-
请 注册 或 登录 后发表评论