提交 d1132365 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

RtpStreamSend: better retransmission logging

上级 7a3d1860
...@@ -111,7 +111,7 @@ namespace RTC ...@@ -111,7 +111,7 @@ namespace RTC
// If NACK is not supported, exit. // If NACK is not supported, exit.
if (!this->params.useNack) if (!this->params.useNack)
{ {
MS_WARN_TAG(rtcp, "NACK not negotiated"); MS_WARN_TAG(rtx, "NACK not negotiated");
return; return;
} }
...@@ -255,11 +255,11 @@ namespace RTC ...@@ -255,11 +255,11 @@ namespace RTC
} }
} }
// If the first requested packet in the NACK was sent but not all the others, // If not all the requested packets was sent, log it.
// log it. if (!first_packet_sent || orig_bitmask != sent_bitmask)
if (first_packet_sent && orig_bitmask != sent_bitmask)
{ {
MS_WARN_TAG(rtcp, "first packet sent but not all the bitmask packets [bitmask:" MS_UINT16_TO_BINARY_PATTERN ", sent:" MS_UINT16_TO_BINARY_PATTERN "]", MS_WARN_TAG(rtx, "not all the requested packet could be sent [first_was_sent:%s, bitmask:" MS_UINT16_TO_BINARY_PATTERN ", sent:" MS_UINT16_TO_BINARY_PATTERN "]",
first_packet_sent ? "yes" : "no",
MS_UINT16_TO_BINARY(orig_bitmask), MS_UINT16_TO_BINARY(sent_bitmask)); MS_UINT16_TO_BINARY(orig_bitmask), MS_UINT16_TO_BINARY(sent_bitmask));
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论