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
2013-11-26 18:11:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94623c0cee5233db98cdc96212c0417553072261
94623c0c
1 parent
758dff0e
fix bug of shared ptr, must copy the payload for it free it.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
trunk/src/core/srs_core_protocol.cpp
trunk/src/core/srs_core_protocol.cpp
查看文件 @
94623c0
...
...
@@ -1373,7 +1373,10 @@ int SrsSharedPtrMessage::initialize(ISrsMessage* msg, char* payload, int size)
header
.
payload_length
=
size
;
ptr
=
new
SrsSharedPtr
();
ptr
->
payload
=
payload
;
// should copy the payload once
ptr
->
payload
=
new
char
[
size
];
memcpy
(
ptr
->
payload
,
payload
,
size
);
ptr
->
size
=
size
;
if
(
msg
->
header
.
is_video
())
{
...
...
请
注册
或
登录
后发表评论