mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #442: HTTP API kickoff client.
This commit is contained in:
parent
0e3128d3e3
commit
e8c0ca7af0
10 changed files with 121 additions and 18 deletions
|
@ -890,6 +890,7 @@ SrsSource::SrsSource()
|
|||
jitter_algorithm = SrsRtmpJitterAlgorithmOFF;
|
||||
mix_correct = false;
|
||||
mix_queue = new SrsMixQueue();
|
||||
is_expired = false;
|
||||
|
||||
#ifdef SRS_AUTO_HLS
|
||||
hls = new SrsHls();
|
||||
|
@ -2071,6 +2072,7 @@ void SrsSource::on_unpublish()
|
|||
|
||||
_can_publish = true;
|
||||
_source_id = -1;
|
||||
is_expired = false;
|
||||
|
||||
// notify the handler.
|
||||
srs_assert(handler);
|
||||
|
@ -2229,3 +2231,13 @@ void SrsSource::destroy_forwarders()
|
|||
forwarders.clear();
|
||||
}
|
||||
|
||||
bool SrsSource::expired()
|
||||
{
|
||||
return is_expired;
|
||||
}
|
||||
|
||||
void SrsSource::set_expired()
|
||||
{
|
||||
is_expired = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue