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
8 years ago
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
5c959fc7812cace1dc2f837bdb4bc646752e2eca
5c959fc7
2 parents
a3ea83f5
6706bda4
merge from srs2, for kbps free io
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
13 行增加
和
11 行删除
README.md
trunk/src/app/srs_app_edge.cpp
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/protocol/srs_protocol_kbps.hpp
README.md
查看文件 @
5c959fc
...
...
@@ -207,6 +207,7 @@ Please select your language:
### V2 changes
*
v2.0, 2017-01-22, for
[
#752
][
bug #752
]
release the io then free it for kbps. 2.0.232
*
v2.0, 2017-01-18, fix
[
#750
][
bug #750
]
use specific error code for dns resolve. 2.0.231
*
<strong>
v2.0, 2017-01-18,
[
2.0 beta4(2.0.230)
][
r2.0b4
]
released. 86334 lines.
</strong>
*
v2.0, 2017-01-18, fix
[
#749
][
bug #749
]
, timestamp overflow for ATC. 2.0.230
...
...
@@ -1370,6 +1371,7 @@ Winlin
[
bug #740
]:
https://github.com/ossrs/srs/issues/740
[
bug #749
]:
https://github.com/ossrs/srs/issues/749
[
bug #750
]:
https://github.com/ossrs/srs/issues/750
[
bug #752
]:
https://github.com/ossrs/srs/issues/752
[
bug #xxxxxxxxxx
]:
https://github.com/ossrs/srs/issues/xxxxxxxxxx
[
bug #735
]:
https://github.com/ossrs/srs/issues/735
...
...
trunk/src/app/srs_app_edge.cpp
查看文件 @
5c959fc
...
...
@@ -483,7 +483,6 @@ void SrsEdgeForwarder::stop()
{
pthread
->
stop
();
queue
->
clear
();
srs_freep
(
sdk
);
}
...
...
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
5c959fc
...
...
@@ -138,9 +138,9 @@ int SrsSimpleRtmpClient::connect()
void
SrsSimpleRtmpClient
::
close
()
{
kbps
->
set_io
(
NULL
,
NULL
);
srs_freep
(
client
);
srs_freep
(
transport
);
kbps
->
set_io
(
NULL
,
NULL
);
}
int
SrsSimpleRtmpClient
::
connect_app
()
...
...
trunk/src/protocol/srs_protocol_kbps.hpp
查看文件 @
5c959fc
...
...
@@ -161,7 +161,7 @@ public:
* SrsKbps* kbps = ...;
* kbps->set_io(in, out);
* // both kbps->get_recv_bytes() and kbps->get_send_bytes() are available.
* // we can use the kbps as the data source of another kbps:
* // we can use the kbps as the data source of another kbps:
* SrsKbps* user = ...;
* user->set_io(kbps, kbps);
* the server never know how many bytes already send/recv, for the connection maybe closed.
...
...
@@ -176,14 +176,15 @@ public:
virtual
~
SrsKbps
();
public
:
/**
* set io to start new session.
* set the underlayer reader/writer,
* if the io destroied, for instance, the forwarder reconnect,
* user must set the io of SrsKbps to NULL to continue to use the kbps object.
* @param in the input stream statistic. can be NULL.
* @param out the output stream statistic. can be NULL.
* @remark if in/out is NULL, use the cached data for kbps.
*/
* set io to start new session.
* set the underlayer reader/writer,
* if the io destroied, for instance, the forwarder reconnect,
* user must set the io of SrsKbps to NULL to continue to use the kbps object.
* @param in the input stream statistic. can be NULL.
* @param out the output stream statistic. can be NULL.
* @remark if in/out is NULL, use the cached data for kbps.
* @remark User must set_io(NULL, NULL) then free the in and out.
*/
virtual
void
set_io
(
ISrsProtocolStatistic
*
in
,
ISrsProtocolStatistic
*
out
);
public
:
/**
...
...
请
注册
或
登录
后发表评论