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
winlin
2015-12-22 17:00:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b24319ffb0279820976b1cfed2d00557be4705b
8b24319f
1 parent
8d378cda
fix #418, ignore null connect props to make RED5 happy. 2.0.204
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
21 行增加
和
4 行删除
README.md
trunk/src/core/srs_core.hpp
trunk/src/protocol/srs_rtmp_stack.cpp
README.md
查看文件 @
8b24319
...
...
@@ -337,6 +337,7 @@ Remark:
## History
*
v2.0, 2015-12-22, for
[
#418
][
bug #418
]
ignore null connect props to make RED5 happy. 2.0.204
*
v2.0, 2015-12-22, for
[
#546
][
bug #546
]
thread terminate normally dispose bug. 2.0.203
*
v2.0, 2015-12-22, for
[
#541
][
bug #541
]
failed when chunk size too small. 2.0.202
*
v2.0, 2015-12-15, default hls_on_error to continue. 2.0.201
...
...
@@ -1211,6 +1212,7 @@ Winlin
[
bug #518
]:
https://github.com/ossrs/srs/issues/518
[
bug #541
]:
https://github.com/ossrs/srs/issues/541
[
bug #546
]:
https://github.com/ossrs/srs/issues/546
[
bug #418
]:
https://github.com/ossrs/srs/issues/418
[
bug #xxxxxxxxxx
]:
https://github.com/ossrs/srs/issues/xxxxxxxxxx
[
exo #828
]:
https://github.com/google/ExoPlayer/pull/828
...
...
trunk/src/core/srs_core.hpp
查看文件 @
8b24319
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_REVISION 20
3
#define VERSION_REVISION 20
4
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
8b24319
...
...
@@ -3289,9 +3289,24 @@ int SrsConnectAppResPacket::decode(SrsStream* stream)
ret
=
ERROR_SUCCESS
;
}
if
((
ret
=
props
->
read
(
stream
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"amf0 decode connect props failed. ret=%d"
,
ret
);
return
ret
;
// for RED5(1.0.6), the props is NULL, we must ignore it.
// @see https://github.com/ossrs/srs/issues/418
if
(
!
stream
->
empty
())
{
SrsAmf0Any
*
p
=
NULL
;
if
((
ret
=
srs_amf0_read_any
(
stream
,
&
p
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"amf0 decode connect props failed. ret=%d"
,
ret
);
return
ret
;
}
// ignore when props is not amf0 object.
if
(
!
p
->
is_object
())
{
srs_warn
(
"ignore connect response props marker=%#x."
,
(
u_int8_t
)
p
->
marker
);
srs_freep
(
p
);
}
else
{
srs_freep
(
props
);
props
=
p
->
to_object
();
srs_info
(
"accept amf0 object connect response props"
);
}
}
if
((
ret
=
info
->
read
(
stream
))
!=
ERROR_SUCCESS
)
{
...
...
请
注册
或
登录
后发表评论