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
2014-12-02 13:03:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
07d55010fecb74bf1eca03a4eaa9380fecce4f88
07d55010
1 parent
f6032ffe
remove the free bytes api of srs-librtmp. use system default is ok.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
1 行增加
和
7 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.hpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
07d5501
...
...
@@ -1743,11 +1743,6 @@ void srs_amf0_free(srs_amf0_t amf0)
srs_freep
(
any
);
}
void
srs_amf0_free_bytes
(
char
*
data
)
{
srs_freep
(
data
);
}
int
srs_amf0_size
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
...
...
@@ -2389,7 +2384,7 @@ int srs_human_print_rtmp_packet(char type, u_int32_t timestamp, char* data, int
char
*
amf0_str
=
NULL
;
srs_human_raw
(
"%s"
,
srs_human_amf0_print
(
amf0
,
&
amf0_str
,
NULL
));
srs_
amf0_free_bytes
(
amf0_str
);
srs_
freep
(
amf0_str
);
}
}
else
{
srs_human_trace
(
"Unknown packet type=%s, dts=%d, pts=%d, size=%d"
,
...
...
trunk/src/libs/srs_librtmp.hpp
查看文件 @
07d5501
...
...
@@ -608,7 +608,6 @@ extern srs_amf0_t srs_amf0_create_ecma_array();
extern
srs_amf0_t
srs_amf0_create_strict_array
();
extern
srs_amf0_t
srs_amf0_create_object
();
extern
void
srs_amf0_free
(
srs_amf0_t
amf0
);
extern
void
srs_amf0_free_bytes
(
char
*
data
);
/* size and to bytes */
extern
int
srs_amf0_size
(
srs_amf0_t
amf0
);
extern
int
srs_amf0_serialize
(
srs_amf0_t
amf0
,
char
*
data
,
int
size
);
...
...
请
注册
或
登录
后发表评论