mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Support shared ptr for RTC source. v6.0.128 (#4085)
--------- Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
parent
242152bd6b
commit
9dba99a1cc
17 changed files with 120 additions and 99 deletions
|
|
@ -218,8 +218,8 @@ srs_error_t SrsGoApiRtcPlay::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessa
|
|||
// Whether RTC stream is active.
|
||||
bool is_rtc_stream_active = false;
|
||||
if (true) {
|
||||
SrsRtcSource* source = _srs_rtc_sources->fetch(ruc->req_);
|
||||
is_rtc_stream_active = (source && !source->can_publish());
|
||||
SrsSharedPtr<SrsRtcSource> source = _srs_rtc_sources->fetch(ruc->req_);
|
||||
is_rtc_stream_active = (source.get() && !source->can_publish());
|
||||
}
|
||||
|
||||
// For RTMP to RTC, fail if disabled and RTMP is active, see https://github.com/ossrs/srs/issues/2728
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue