Fix WHIP source state with transcoding bug. v6.0.179 (#4495)

This commit is contained in:
winlin 2025-09-21 08:13:46 -04:00
parent f22a5db38a
commit 31c0ff8815
3 changed files with 7 additions and 6 deletions

View File

@ -665,9 +665,6 @@ void SrsRtcSource::on_unpublish()
srs_trace("cleanup when unpublish, created=%u, deliver=%u", is_created_, is_delivering_packets_);
is_created_ = false;
is_delivering_packets_ = false;
if (!_source_id.empty()) {
_pre_source_id = _source_id;
}
@ -701,6 +698,9 @@ void SrsRtcSource::on_unpublish()
if (consumers.empty()) {
stream_die_at_ = srs_get_system_time();
}
is_created_ = false;
is_delivering_packets_ = false;
}
void SrsRtcSource::subscribe(ISrsRtcSourceEventHandler* h)

View File

@ -1073,8 +1073,6 @@ void SrsSrtSource::on_unpublish()
return;
}
can_publish_ = true;
SrsStatistic* stat = SrsStatistic::instance();
stat->on_stream_close(req);
@ -1090,6 +1088,8 @@ void SrsSrtSource::on_unpublish()
if (consumers.empty()) {
stream_die_at_ = srs_get_system_time();
}
can_publish_ = true;
}
srs_error_t SrsSrtSource::on_packet(SrsSrtPacket* packet)

View File

@ -233,7 +233,8 @@ void SrsFastCoroutine::stop()
}
disposed = true;
stopping_ = true;
stopping_cid_ = _srs_context->get_id();
interrupt();
// When not started, the trd is NULL.