1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Live: Limit cached max frames by gop_cache_max_frames (#3236)

* add gop_cache_max_frames

* Live: Limit cached max frames by gop_cache_max_frames. v5.0.93

Co-authored-by: wanglei <wanglei@unicloud.com>
Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
stone 2022-11-22 12:31:45 +08:00 committed by GitHub
parent 4ada0bc629
commit ec76512e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 75 additions and 7 deletions

View file

@ -553,6 +553,8 @@ public:
// @return true when gop_cache is ok; otherwise, false.
// @remark, default true.
virtual bool get_gop_cache(std::string vhost);
// Get the limit max frames for gop cache.
virtual int get_gop_cache_max_frames(std::string vhost);
// Whether debug_srs_upnode is enabled of vhost.
// debug_srs_upnode is very important feature for tracable log,
// but some server, for instance, flussonic donot support it.