Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2017-02-05 20:16:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca9f04098d625f00366a06919d27c6662f53e359
ca9f0409
1 parent
efcd0300
ignore "checkBandwidth" and "_checkbw" command,don't treat them as republish
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
10 行增加
和
1 行删除
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/protocol/srs_rtmp_stack.cpp
trunk/src/protocol/srs_rtmp_stack.hpp
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
ca9f040
...
...
@@ -990,6 +990,9 @@ int SrsRtmpConn::handle_publish_message(SrsSource* source, SrsCommonMessage* msg
srs_error
(
"fmle decode unpublish message failed. ret=%d"
,
ret
);
return
ret
;
}
if
(
NULL
==
pkt
){
return
ret
;
//ignored packets,don't do republish
}
SrsAutoFree
(
SrsPacket
,
pkt
);
// for flash, any packet is republish.
...
...
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
ca9f040
...
...
@@ -838,7 +838,11 @@ int SrsProtocol::do_decode_message(SrsMessageHeader& header, SrsStream* stream,
srs_info
(
"decode the AMF0/AMF3 closeStream message."
);
*
ppacket
=
packet
=
new
SrsCloseStreamPacket
();
return
packet
->
decode
(
stream
);
}
else
if
(
header
.
is_amf0_command
()
||
header
.
is_amf3_command
())
{
}
else
if
(
command
==
RTMP_AMF0_COMMAND_CHECKBANDWIDTH
||
command
==
RTMP_AMF0_COMMAND_CHECKBW
)
{
//todo: process check bandwidth command,now drop it
return
ret
;
}
else
if
(
header
.
is_amf0_command
()
||
header
.
is_amf3_command
())
{
srs_info
(
"decode the AMF0/AMF3 call message."
);
*
ppacket
=
packet
=
new
SrsCallPacket
();
return
packet
->
decode
(
stream
);
...
...
trunk/src/protocol/srs_rtmp_stack.hpp
查看文件 @
ca9f040
...
...
@@ -91,6 +91,8 @@ class IMergeReadHandler;
#define RTMP_AMF0_COMMAND_PUBLISH "publish"
#define RTMP_AMF0_DATA_SAMPLE_ACCESS "|RtmpSampleAccess"
#define RTMP_AMF0_COMMAND_CHECKBANDWIDTH "checkBandwidth"
#define RTMP_AMF0_COMMAND_CHECKBW "_checkbw"
/**
* the signature for packets to client.
*/
...
...
请
注册
或
登录
后发表评论