Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
a0d58aef
提交
a0d58aef
authored
2月 26, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use RtpParameters->GetEncodingMediaSsrc() and clean some logs
上级
5005fa2e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
16 行删除
+5
-16
RtpReceiver.cpp
worker/src/RTC/RtpReceiver.cpp
+1
-1
RtpSender.cpp
worker/src/RTC/RtpSender.cpp
+1
-1
RtpStreamSend.cpp
worker/src/RTC/RtpStreamSend.cpp
+3
-14
没有找到文件。
worker/src/RTC/RtpReceiver.cpp
浏览文件 @
a0d58aef
...
@@ -298,7 +298,7 @@ namespace RTC
...
@@ -298,7 +298,7 @@ namespace RTC
RTC
::
RTCP
::
ReceiverReport
*
report
=
this
->
rtpStream
->
GetRtcpReceiverReport
();
RTC
::
RTCP
::
ReceiverReport
*
report
=
this
->
rtpStream
->
GetRtcpReceiverReport
();
// TODO: This assumes a single stream for now.
// TODO: This assumes a single stream for now.
report
->
SetSsrc
(
this
->
rtpParameters
->
encodings
[
0
].
ssrc
);
report
->
SetSsrc
(
this
->
rtpParameters
->
GetEncodingMediaSsrc
(
0
)
);
packet
->
AddReceiverReport
(
report
);
packet
->
AddReceiverReport
(
report
);
this
->
lastRtcpSentTime
=
now
;
this
->
lastRtcpSentTime
=
now
;
...
...
worker/src/RTC/RtpSender.cpp
浏览文件 @
a0d58aef
...
@@ -292,7 +292,7 @@ namespace RTC
...
@@ -292,7 +292,7 @@ namespace RTC
if
(
report
)
if
(
report
)
{
{
// TODO: This assumes a single stream for now.
// TODO: This assumes a single stream for now.
uint32_t
ssrc
=
this
->
rtpParameters
->
encodings
[
0
].
ssrc
;
uint32_t
ssrc
=
this
->
rtpParameters
->
GetEncodingMediaSsrc
(
0
)
;
std
::
string
cname
=
this
->
rtpParameters
->
rtcp
.
cname
;
std
::
string
cname
=
this
->
rtpParameters
->
rtcp
.
cname
;
report
->
SetSsrc
(
ssrc
);
report
->
SetSsrc
(
ssrc
);
...
...
worker/src/RTC/RtpStreamSend.cpp
浏览文件 @
a0d58aef
...
@@ -115,8 +115,7 @@ namespace RTC
...
@@ -115,8 +115,7 @@ namespace RTC
// Otherwise just return.
// Otherwise just return.
else
else
{
{
// TODO: REMOVE
MS_DEBUG_DEV
(
"requested packet range not in the buffer"
);
// MS_WARN_TAG(rtp, "requested packet range not in the buffer");
return
;
return
;
}
}
...
@@ -135,14 +134,10 @@ namespace RTC
...
@@ -135,14 +134,10 @@ namespace RTC
uint8_t
bitmask_counter
=
0
;
uint8_t
bitmask_counter
=
0
;
bool
too_old_packet_found
=
false
;
bool
too_old_packet_found
=
false
;
// TODO: REMOVE
MS_DEBUG_DEV
(
"loop [bitmask:"
UINT16_TO_BINARY_PATTERN
"]"
,
UINT16_TO_BINARY
(
bitmask
));
// MS_WARN_TAG(rtcp, "loop [bitmask:" UINT16_TO_BINARY_PATTERN "]", UINT16_TO_BINARY(bitmask));
while
(
requested
||
bitmask
!=
0
)
while
(
requested
||
bitmask
!=
0
)
{
{
// TODO: REMOVE
// MS_WARN_TAG(rtcp, "while [bit:%" PRIu8 ", requested:%d]", bitmask_counter, requested);
bool
sent
=
false
;
bool
sent
=
false
;
if
(
requested
)
if
(
requested
)
...
@@ -170,8 +165,7 @@ namespace RTC
...
@@ -170,8 +165,7 @@ namespace RTC
}
}
else
if
(
!
too_old_packet_found
)
else
if
(
!
too_old_packet_found
)
{
{
// TODO: REMOVE
MS_DEBUG_DEV
(
"ignoring retransmission for too old packet [max_age:%"
PRIu32
"ms, packet_age:%"
PRIu32
"ms]"
,
MAX_RETRANSMISSION_AGE
,
diff
);
// MS_WARN_TAG(rtp, "ignoring retransmission for too old packet [max_age:%" PRIu32 "ms, packet_age:%" PRIu32 "ms]", MAX_RETRANSMISSION_AGE, diff);
too_old_packet_found
=
true
;
too_old_packet_found
=
true
;
}
}
...
@@ -204,11 +198,6 @@ namespace RTC
...
@@ -204,11 +198,6 @@ namespace RTC
MS_WARN_TAG
(
rtcp
,
"first packet sent but not all the bitmask packets [bitmask:"
UINT16_TO_BINARY_PATTERN
", sent:"
UINT16_TO_BINARY_PATTERN
"]"
,
MS_WARN_TAG
(
rtcp
,
"first packet sent but not all the bitmask packets [bitmask:"
UINT16_TO_BINARY_PATTERN
", sent:"
UINT16_TO_BINARY_PATTERN
"]"
,
UINT16_TO_BINARY
(
orig_bitmask
),
UINT16_TO_BINARY
(
sent_bitmask
));
UINT16_TO_BINARY
(
orig_bitmask
),
UINT16_TO_BINARY
(
sent_bitmask
));
}
}
// TODO: REMOVE
// else if (first_packet_sent && orig_bitmask && orig_bitmask == sent_bitmask)
// {
// MS_WARN_TAG(rtcp, "first packet sent and also all the bitmask packets [bitmask:" UINT16_TO_BINARY_PATTERN "]", UINT16_TO_BINARY(orig_bitmask));
// }
// Set the next container element to null.
// Set the next container element to null.
container
[
container_idx
]
=
nullptr
;
container
[
container_idx
]
=
nullptr
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论