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-05 14:56:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
590e9517398c4d442bcf125421353b4b338217d1
590e9517
1 parent
c7b97aa1
fix memory leak of source.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
2 行删除
trunk/src/app/srs_app_source.cpp
trunk/src/app/srs_app_source.cpp
查看文件 @
590e951
...
...
@@ -1030,7 +1030,18 @@ int SrsSource::cycle()
bool
SrsSource
::
expired
()
{
if
(
!
consumers
.
empty
()
||
die_at
==
-
1
)
{
// unknown state?
if
(
die_at
==
-
1
)
{
return
false
;
}
// still publishing?
if
(
!
_can_publish
)
{
return
false
;
}
// has any consumers?
if
(
!
consumers
.
empty
())
{
return
false
;
}
...
...
@@ -2210,7 +2221,6 @@ int SrsSource::create_consumer(SrsConnection* conn, SrsConsumer*& consumer, bool
{
int
ret
=
ERROR_SUCCESS
;
die_at
=
-
1
;
consumer
=
new
SrsConsumer
(
this
,
conn
);
consumers
.
push_back
(
consumer
);
...
...
请
注册
或
登录
后发表评论