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

more on RtpStreamSend

上级 c246d852
...@@ -117,7 +117,7 @@ namespace RTC ...@@ -117,7 +117,7 @@ namespace RTC
// Some variables for debugging. // Some variables for debugging.
uint16_t orig_bitmask = bitmask; uint16_t orig_bitmask = bitmask;
uint16_t sent_bitmask = 0b0000000000000000; uint16_t sent_bitmask = 0b0000000000000000;
uint8_t counter = 0; int8_t bitmask_counter = -1;
bool first_packet_sent = false; bool first_packet_sent = false;
do do
...@@ -144,7 +144,7 @@ namespace RTC ...@@ -144,7 +144,7 @@ namespace RTC
container[container_idx++] = current_packet; container[container_idx++] = current_packet;
sent = true; sent = true;
if (counter == 0) if (bitmask_counter == -1)
first_packet_sent = true; first_packet_sent = true;
} }
else else
...@@ -163,11 +163,9 @@ namespace RTC ...@@ -163,11 +163,9 @@ namespace RTC
++seq32; ++seq32;
// For debugging. // For debugging.
// NOTE: We don't check whether the first requested packet is sent but if (bitmask_counter >= 0)
// just the next 16. sent_bitmask |= (sent ? 1 : 0) << bitmask_counter;
if (counter > 0) ++bitmask_counter;
sent_bitmask |= (sent ? 1 : 0) << (counter - 1);
++counter;
} }
while (bitmask != 0); while (bitmask != 0);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论