mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
Merge branch '3.0release' into 4.0release
This commit is contained in:
commit
991ef94535
4 changed files with 11 additions and 5 deletions
|
@ -201,6 +201,7 @@ For previous versions, please read:
|
||||||
|
|
||||||
## V3 changes
|
## V3 changes
|
||||||
|
|
||||||
|
* v3.0, 2020-09-14, Prevent stop ingest for multiple times. 3.0.143
|
||||||
* v3.0, 2020-09-10, RTC: Change SO_REUSEPORT fail to warning. 3.0.142
|
* v3.0, 2020-09-10, RTC: Change SO_REUSEPORT fail to warning. 3.0.142
|
||||||
* <strong>v3.0, 2020-06-27, [3.0 release0(3.0.141)][r3.0r0] released. 122674 lines.</strong>
|
* <strong>v3.0, 2020-06-27, [3.0 release0(3.0.141)][r3.0r0] released. 122674 lines.</strong>
|
||||||
* v3.0, 2020-03-30, For [#1672][bug #1672], fix dvr close file failed bug. 3.0.140
|
* v3.0, 2020-03-30, For [#1672][bug #1672], fix dvr close file failed bug. 3.0.140
|
||||||
|
|
|
@ -691,11 +691,13 @@ void SrsPlayEdge::on_all_client_stop()
|
||||||
// when all client disconnected,
|
// when all client disconnected,
|
||||||
// and edge is ingesting origin stream, abort it.
|
// and edge is ingesting origin stream, abort it.
|
||||||
if (state == SrsEdgeStatePlay || state == SrsEdgeStateIngestConnected) {
|
if (state == SrsEdgeStatePlay || state == SrsEdgeStateIngestConnected) {
|
||||||
|
SrsEdgeState pstate = state;
|
||||||
|
state = SrsEdgeStateIngestStopping;
|
||||||
|
|
||||||
ingester->stop();
|
ingester->stop();
|
||||||
|
|
||||||
SrsEdgeState pstate = state;
|
|
||||||
state = SrsEdgeStateInit;
|
state = SrsEdgeStateInit;
|
||||||
srs_trace("edge change from %d to state %d (init).", pstate, state);
|
srs_trace("edge change from %d to %d then %d (init).", pstate, SrsEdgeStateIngestStopping, state);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,9 @@ enum SrsEdgeState
|
||||||
|
|
||||||
// For publish edge
|
// For publish edge
|
||||||
SrsEdgeStatePublish = 200,
|
SrsEdgeStatePublish = 200,
|
||||||
|
|
||||||
|
// We are stopping edge ingesting.
|
||||||
|
SrsEdgeStateIngestStopping = 300,
|
||||||
};
|
};
|
||||||
|
|
||||||
// The state of edge from user, manual machine
|
// The state of edge from user, manual machine
|
||||||
|
|
|
@ -24,6 +24,6 @@
|
||||||
#ifndef SRS_CORE_VERSION3_HPP
|
#ifndef SRS_CORE_VERSION3_HPP
|
||||||
#define SRS_CORE_VERSION3_HPP
|
#define SRS_CORE_VERSION3_HPP
|
||||||
|
|
||||||
#define SRS_VERSION3_REVISION 142
|
#define SRS_VERSION3_REVISION 143
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue