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:18:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5d3a183f434d4594ddd01d784317b325b9968571
5d3a183f
1 parent
8b24319f
fix #509, always alloc big object at heap. 2.0.205
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
15 行增加
和
5 行删除
README.md
trunk/src/core/srs_core.hpp
trunk/src/protocol/srs_rtmp_stack.cpp
README.md
查看文件 @
5d3a183
...
...
@@ -337,6 +337,7 @@ Remark:
## History
*
v2.0, 2015-12-22, for
[
#509
][
bug #509
]
always alloc big object at heap. 2.0.205
*
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
...
...
@@ -1213,6 +1214,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/core/srs_core.hpp
查看文件 @
5d3a183
...
...
@@ -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
4
#define VERSION_REVISION 20
5
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
trunk/src/protocol/srs_rtmp_stack.cpp
查看文件 @
5d3a183
...
...
@@ -1981,11 +1981,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
;
}
}
...
...
请
注册
或
登录
后发表评论