diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index ea51c56e5d..7eaa26d1b1 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -7,6 +7,7 @@ The changelog for SRS. ## SRS 5.0 Changelog +* v5.0, 2025-02-20, Merge [#4253](https://github.com/ossrs/srs/pull/4253): fix typo about heartbeat. v5.0.220 (#4253) * v5.0, 2025-02-19, Merge [#4291](https://github.com/ossrs/srs/pull/4291): fix ci error. v5.0.219 (#4291) * v5.0, 2025-01-14, Merge [#4271](https://github.com/ossrs/srs/pull/4271): update copyright to 2025. v5.0.218 (#4271) * v5.0, 2024-10-31, Merge [#4216](https://github.com/ossrs/srs/pull/4216): fix hls error when stream has extension. v5.0.217 (#4216) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 18b8aad0ff..9b7cbd6621 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -2387,7 +2387,7 @@ srs_error_t SrsConfig::check_normal_config() } } if (true) { - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); for (int i = 0; conf && i < (int)conf->directives.size(); i++) { string n = conf->at(i)->name; if (n != "enabled" && n != "interval" && n != "url" @@ -8689,7 +8689,7 @@ string SrsConfig::get_vhost_http_remux_mount(string vhost) return conf->arg0(); } -SrsConfDirective* SrsConfig::get_heartbeart() +SrsConfDirective* SrsConfig::get_heartbeat() { return root->get("heartbeat"); } @@ -8700,7 +8700,7 @@ bool SrsConfig::get_heartbeat_enabled() static bool DEFAULT = false; - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } @@ -8719,7 +8719,7 @@ srs_utime_t SrsConfig::get_heartbeat_interval() static srs_utime_t DEFAULT = (srs_utime_t)(10 * SRS_UTIME_SECONDS); - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } @@ -8738,7 +8738,7 @@ string SrsConfig::get_heartbeat_url() static string DEFAULT = "http://" SRS_CONSTS_LOCALHOST ":8085/api/v1/servers"; - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } @@ -8757,7 +8757,7 @@ string SrsConfig::get_heartbeat_device_id() static string DEFAULT = ""; - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } @@ -8776,7 +8776,7 @@ bool SrsConfig::get_heartbeat_summaries() static bool DEFAULT = false; - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } @@ -8795,7 +8795,7 @@ bool SrsConfig::get_heartbeat_ports() static bool DEFAULT = false; - SrsConfDirective* conf = get_heartbeart(); + SrsConfDirective* conf = get_heartbeat(); if (!conf) { return DEFAULT; } diff --git a/trunk/src/app/srs_app_config.hpp b/trunk/src/app/srs_app_config.hpp index 664c80ce8c..fd7ebccc46 100644 --- a/trunk/src/app/srs_app_config.hpp +++ b/trunk/src/app/srs_app_config.hpp @@ -1100,10 +1100,10 @@ class SrsConfig // Get the http flv live stream mount point for vhost. // used to generate the flv stream mount path. virtual std::string get_vhost_http_remux_mount(std::string vhost); -// http heartbeart section +// http heartbeat section private: // Get the heartbeat directive. - virtual SrsConfDirective* get_heartbeart(); + virtual SrsConfDirective* get_heartbeat(); public: // Whether heartbeat enabled. virtual bool get_heartbeat_enabled(); diff --git a/trunk/src/core/srs_core_version5.hpp b/trunk/src/core/srs_core_version5.hpp index b06f18577a..3f611e1143 100644 --- a/trunk/src/core/srs_core_version5.hpp +++ b/trunk/src/core/srs_core_version5.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 5 #define VERSION_MINOR 0 -#define VERSION_REVISION 219 +#define VERSION_REVISION 220 #endif