mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 11:21:52 +00:00
update stable version check
This commit is contained in:
parent
636bc574af
commit
d349a3dbda
3 changed files with 9 additions and 5 deletions
|
@ -205,7 +205,7 @@ PRIMARY response in NetConnection.connect and metadata.
|
|||
newbie questions, and generally make SRS that much better.
|
||||
|
||||
About all PRIMARY, AUTHORS and CONTRIBUTORS, read
|
||||
[AUTHORS.txt](https://github.com/winlinvip/simple-rtmp-server/blob/master/AUTHORS.txt).
|
||||
[AUTHORS.txt](https://github.com/winlinvip/simple-rtmp-server/blob/develop/AUTHORS.txt).
|
||||
|
||||
A big THANK YOU goes to:
|
||||
* [chnvideo](chnvideo.com) co-founders([wiseyoung](mailto:wiseyoung@chnvideo.com), [trueice](mailto:trueice@chnvideo.com), [leijian](mailto:leijian@chnvideo.com)) for [big supports](https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_Product#bigthanks).
|
||||
|
|
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR 2
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 140
|
||||
#define VERSION_REVISION 141
|
||||
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
|
@ -53,6 +53,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define RTMP_SIG_SRS_VERSION __SRS_XSTR(VERSION_MAJOR)"."__SRS_XSTR(VERSION_MINOR)"."__SRS_XSTR(VERSION_REVISION)
|
||||
#define RTMP_SIG_SRS_SERVER RTMP_SIG_SRS_KEY"/"RTMP_SIG_SRS_VERSION"("RTMP_SIG_SRS_CODE")"
|
||||
|
||||
// stable major version
|
||||
#define VERSION_STABLE 1
|
||||
#define VERSION_STABLE_BRANCH __SRS_XSTR(VERSION_STABLE)".0release"
|
||||
|
||||
// internal macros, covert macro values to str,
|
||||
// see: read https://gcc.gnu.org/onlinedocs/cpp/Stringification.html#Stringification
|
||||
#define __SRS_XSTR(v) __SRS_STR(v)
|
||||
|
|
|
@ -207,9 +207,9 @@ void check_macro_features()
|
|||
|
||||
srs_trace("writev limits write %d iovs a time", sysconf(_SC_IOV_MAX));
|
||||
|
||||
#if VERSION_MAJOR > 1
|
||||
#warning "using develop SRS, please use release instead."
|
||||
srs_warn("SRS %s is develop branch, please use %s instead", RTMP_SIG_SRS_VERSION, RTMP_SIG_SRS_RELEASE);
|
||||
#if VERSION_MAJOR > VERSION_STABLE
|
||||
#warning "current branch is not stable, please use stable branch instead."
|
||||
srs_warn("SRS %s is not stable, please use stable branch %s instead", RTMP_SIG_SRS_VERSION, VERSION_STABLE_BRANCH);
|
||||
#endif
|
||||
|
||||
#if defined(SRS_AUTO_STREAM_CASTER)
|
||||
|
|
Loading…
Reference in a new issue