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
2016-09-13 18:08:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
53d2eb5e02b4f9b21c8311d270c784bb84025928
53d2eb5e
1 parent
588de3e7
fix librtmp get bytes bug.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
53d2eb5
...
...
@@ -2002,6 +2002,9 @@ int64_t srs_utils_send_bytes(srs_rtmp_t rtmp)
{
srs_assert
(
rtmp
!=
NULL
);
Context
*
context
=
(
Context
*
)
rtmp
;
if
(
!
context
->
rtmp
)
{
return
0
;
}
return
context
->
rtmp
->
get_send_bytes
();
}
...
...
@@ -2009,6 +2012,9 @@ int64_t srs_utils_recv_bytes(srs_rtmp_t rtmp)
{
srs_assert
(
rtmp
!=
NULL
);
Context
*
context
=
(
Context
*
)
rtmp
;
if
(
!
context
->
rtmp
)
{
return
0
;
}
return
context
->
rtmp
->
get_recv_bytes
();
}
...
...
请
注册
或
登录
后发表评论