mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: remove rtmp_to_srt
This commit is contained in:
parent
43d98d0b1c
commit
fbc6eebe18
7 changed files with 1 additions and 163 deletions
|
@ -952,31 +952,6 @@ srs_error_t SrsRtmpConn::acquire_publish(SrsLiveSource* source)
|
|||
return srs_error_new(ERROR_SYSTEM_STREAM_BUSY, "rtmp: stream %s is busy", req->get_stream_url().c_str());
|
||||
}
|
||||
|
||||
#ifdef SRS_SRT
|
||||
if (_srs_config->get_rtc_from_rtmp(req->vhost)) {
|
||||
SrsSrtSource *srt = NULL;
|
||||
if (!info->edge) {
|
||||
if ((err = _srs_srt_sources->fetch_or_create(req, &srt)) != srs_success) {
|
||||
return srs_error_wrap(err, "create source");
|
||||
}
|
||||
|
||||
if (!srt->can_publish()) {
|
||||
return srs_error_new(ERROR_SYSTEM_STREAM_BUSY, "srt stream %s busy", req->get_stream_url().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
if (srt) {
|
||||
SrsSrtFromRtmpBridge *bridger = new SrsSrtFromRtmpBridge(srt);
|
||||
if ((err = bridger->initialize(req)) != srs_success) {
|
||||
srs_freep(bridger);
|
||||
return srs_error_wrap(err, "bridger init");
|
||||
}
|
||||
|
||||
source->set_bridger(bridger);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check whether RTC stream is busy.
|
||||
#ifdef SRS_RTC
|
||||
SrsRtcSource *rtc = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue