Skip to content

Commit

Permalink
For ossrs#3236: Live: Change gop cache limits to 2500. v5.0.94
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 23, 2022
1 parent daa7fd2 commit 113edd7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions trunk/conf/full.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,9 @@ vhost play.srs.com {
gop_cache off;

# Limit the max frames in gop cache. It might cause OOM if video stream has no IDR frame, so we limit to N
# frames by default.
# default: 250
gop_cache_max_frames 250;
# frames by default. Note that it's the size of gop cache, including videos, audios and other messages.
# default: 2500
gop_cache_max_frames 2500;

# the max live queue length in seconds.
# if the messages in the queue exceed the max length,
Expand Down
2 changes: 1 addition & 1 deletion trunk/conf/srs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ vhost __defaultVhost__ {
}

play{
gop_cache_max_frames 250;
gop_cache_max_frames 2500;
}
}
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4663,7 +4663,7 @@ int SrsConfig::get_gop_cache_max_frames(string vhost)
{
SRS_OVERWRITE_BY_ENV_INT("srs.vhost.play.gop_cache_max_frames");

static int DEFAULT = 250;
static int DEFAULT = 2500;

SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core_version5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 93
#define VERSION_REVISION 94

#endif

0 comments on commit 113edd7

Please sign in to comment.