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-11-11 13:40:54 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6191e3791d616a22983becbf2a3e3ed54badab0b
6191e379
2 parents
7924ef97
46330dd1
Merge branch 'srs.master'
隐藏空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
2 行增加
和
21 行删除
README.md
trunk/src/app/srs_app_edge.cpp
trunk/src/app/srs_app_forward.cpp
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/app/srs_app_thread.hpp
trunk/src/core/srs_core.hpp
README.md
查看文件 @
6191e37
...
...
@@ -242,6 +242,7 @@ Supported operating systems and hardware:
*
2013-10-17, Created.
<br/>
## History
*
v2.0, 2014-11-08, fix
[
#195
](
https://github.com/winlinvip/simple-rtmp-server/issues/195
)
, remove the confuse code st_usleep(0). 2.0.13.
*
v2.0, 2014-11-08, fix
[
#191
](
https://github.com/winlinvip/simple-rtmp-server/issues/191
)
, configure --export-librtmp-project and --export-librtmp-single. 2.0.11.
*
v2.0, 2014-11-08, fix
[
#66
](
https://github.com/winlinvip/simple-rtmp-server/issues/66
)
, srs-librtmp support write h264 raw packet. 2.0.9.
*
v2.0, 2014-10-25, fix
[
#185
](
https://github.com/winlinvip/simple-rtmp-server/issues/185
)
, AMF0 support 0x0B the date type codec. 2.0.7.
...
...
trunk/src/app/srs_app_edge.cpp
查看文件 @
6191e37
...
...
@@ -170,9 +170,6 @@ int SrsEdgeIngester::ingest()
SrsPithyPrint
pithy_print
(
SRS_CONSTS_STAGE_EDGE
);
while
(
pthread
->
can_loop
())
{
// switch to other st-threads.
st_usleep
(
0
);
pithy_print
.
elapse
();
// pithy print
...
...
@@ -480,9 +477,6 @@ int SrsEdgeForwarder::cycle()
SrsSharedPtrMessageArray
msgs
(
SYS_MAX_EDGE_SEND_MSGS
);
while
(
pthread
->
can_loop
())
{
// switch to other st-threads.
st_usleep
(
0
);
if
(
send_error_code
!=
ERROR_SUCCESS
)
{
st_usleep
(
SRS_EDGE_FORWARDER_ERROR_US
);
continue
;
...
...
trunk/src/app/srs_app_forward.cpp
查看文件 @
6191e37
...
...
@@ -399,9 +399,6 @@ int SrsForwarder::forward()
}
while
(
pthread
->
can_loop
())
{
// switch to other st-threads.
st_usleep
(
0
);
pithy_print
.
elapse
();
// read from client.
...
...
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
6191e37
...
...
@@ -608,9 +608,6 @@ int SrsRtmpConn::playing(SrsSource* source)
return
ret
;
}
}
// switch to other threads, to anti dead loop.
st_usleep
(
0
);
}
return
ret
;
...
...
@@ -668,9 +665,6 @@ int SrsRtmpConn::do_fmle_publishing(SrsSource* source)
}
while
(
true
)
{
// switch to other st-threads.
st_usleep
(
0
);
SrsMessage
*
msg
=
NULL
;
if
((
ret
=
rtmp
->
recv_message
(
&
msg
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"fmle recv identify client message failed. ret=%d"
,
ret
);
...
...
@@ -774,9 +768,6 @@ int SrsRtmpConn::do_flash_publishing(SrsSource* source)
}
while
(
true
)
{
// switch to other st-threads.
st_usleep
(
0
);
SrsMessage
*
msg
=
NULL
;
if
((
ret
=
rtmp
->
recv_message
(
&
msg
))
!=
ERROR_SUCCESS
)
{
if
(
!
srs_is_client_gracefully_close
(
ret
))
{
...
...
trunk/src/app/srs_app_thread.hpp
查看文件 @
6191e37
...
...
@@ -50,14 +50,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* espectially on st_usleep(), so the cycle must check the loop,
* when handler->cycle() has loop itself, for example:
* while (true):
* st_usleep(0);
* if (read_from_socket(skt) < 0) break;
* if thread stop when read_from_socket, it's ok, the loop will break,
* but when thread stop interrupt the s_usleep(0), then the loop is
* death loop.
* in a word, the handler->cycle() must:
* while (pthread->can_loop()):
* st_usleep(0);
* if (read_from_socket(skt) < 0) break;
* check the loop, then it works.
*
...
...
trunk/src/core/srs_core.hpp
查看文件 @
6191e37
...
...
@@ -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 1
2
#define VERSION_REVISION 1
3
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
#define RTMP_SIG_SRS_ROLE "origin/edge server"
...
...
请
注册
或
登录
后发表评论