From 47c43e47b6d184b9a0911b1ceefa63d0daa0a23c Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 7 Aug 2020 12:48:45 +0800 Subject: [PATCH] RTC: Fix is_started state init bug --- trunk/src/app/srs_app_rtc_conn.cpp | 2 ++ trunk/src/core/srs_core_version4.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_rtc_conn.cpp b/trunk/src/app/srs_app_rtc_conn.cpp index 2e8e2a313..fa0a30de2 100644 --- a/trunk/src/app/srs_app_rtc_conn.cpp +++ b/trunk/src/app/srs_app_rtc_conn.cpp @@ -203,6 +203,7 @@ SrsRtcPlayStream::SrsRtcPlayStream(SrsRtcConnection* s, SrsContextId parent_cid) req_ = NULL; source_ = NULL; + is_started = false; session_ = s; mw_msgs = 0; @@ -804,6 +805,7 @@ SrsRtcPublishStream::SrsRtcPublishStream(SrsRtcConnection* session) { timer_ = new SrsHourGlass(this, 200 * SRS_UTIME_MILLISECONDS); + is_started = false; session_ = session; request_keyframe_ = false; diff --git a/trunk/src/core/srs_core_version4.hpp b/trunk/src/core/srs_core_version4.hpp index 8c04a607d..71356be0b 100644 --- a/trunk/src/core/srs_core_version4.hpp +++ b/trunk/src/core/srs_core_version4.hpp @@ -24,6 +24,6 @@ #ifndef SRS_CORE_VERSION4_HPP #define SRS_CORE_VERSION4_HPP -#define SRS_VERSION4_REVISION 37 +#define SRS_VERSION4_REVISION 38 #endif