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
2013-11-03 19:57:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f94f891ad3a2ac4c709a29679b0c527840e43fc
9f94f891
1 parent
6d4eb3d3
delete the cache when unpublish, when publish the encoder will update it
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
trunk/src/core/srs_core_source.cpp
trunk/src/core/srs_core_source.cpp
查看文件 @
9f94f89
...
...
@@ -382,7 +382,13 @@ void SrsSource::on_consumer_destroy(SrsConsumer* consumer)
void
SrsSource
::
on_unpublish
()
{
clear_gop_cache
();
srs_trace
(
"clear cache when unpublish."
);
srs_freep
(
cache_metadata
);
srs_freep
(
cache_sh_video
);
srs_freep
(
cache_sh_audio
);
srs_trace
(
"clear cache/metadata/sequence-headers when unpublish."
);
}
int
SrsSource
::
cache_last_gop
(
SrsSharedPtrMessage
*
msg
)
...
...
请
注册
或
登录
后发表评论