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 19:19:28 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
714c13d88def1aa62937510ecc1f6a8676ee8abd
714c13d8
2 parents
65b81a4e
5d3a183f
merge from srs2
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
13 行增加
和
4 行删除
README.md
trunk/src/protocol/srs_rtmp_stack.cpp
README.md
查看文件 @
714c13d
...
...
@@ -1290,6 +1290,7 @@ Winlin
[
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 #509
]:
https://github.com/ossrs/srs/issues/509
[
bug #xxxxxxxxxx
]:
https://github.com/ossrs/srs/issues/xxxxxxxxxx
[
exo #828
]:
https://github.com/google/ExoPlayer/pull/828
...
...
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
714c13d
...
...
@@ -1992,11 +1992,19 @@ int SrsRtmpClient::handshake()
srs_assert
(
hs_bytes
);
SrsComplexHandshake
complex_hs
;
if
((
ret
=
complex_hs
.
handshake_with_server
(
hs_bytes
,
io
))
!=
ERROR_SUCCESS
)
{
// maybe st has problem when alloc object on stack, always alloc object at heap.
// @see https://github.com/ossrs/srs/issues/509
SrsComplexHandshake
*
complex_hs
=
new
SrsComplexHandshake
();
SrsAutoFree
(
SrsComplexHandshake
,
complex_hs
);
if
((
ret
=
complex_hs
->
handshake_with_server
(
hs_bytes
,
io
))
!=
ERROR_SUCCESS
)
{
if
(
ret
==
ERROR_RTMP_TRY_SIMPLE_HS
)
{
SrsSimpleHandshake
simple_hs
;
if
((
ret
=
simple_hs
.
handshake_with_server
(
hs_bytes
,
io
))
!=
ERROR_SUCCESS
)
{
// always alloc object at heap.
// @see https://github.com/ossrs/srs/issues/509
SrsSimpleHandshake
*
simple_hs
=
new
SrsSimpleHandshake
();
SrsAutoFree
(
SrsSimpleHandshake
,
simple_hs
);
if
((
ret
=
simple_hs
->
handshake_with_server
(
hs_bytes
,
io
))
!=
ERROR_SUCCESS
)
{
return
ret
;
}
}
...
...
请
注册
或
登录
后发表评论