1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

RTC: Refine code

This commit is contained in:
winlin 2020-08-06 16:15:06 +08:00
parent a98187580f
commit ffeb3a8c46

View file

@ -1875,10 +1875,7 @@ srs_error_t SrsRtcConnection::initialize(SrsRtcStream* source, SrsRequest* r, bo
username_ = username;
is_publisher_ = is_publisher;
if (r) { //TODO: FIXME: SrsRequest owner by Stream, not connection
req = r->copy();
}
req = r->copy();
SrsSessionConfig* cfg = &local_sdp.session_config_;
if ((err = transport_->initialize(cfg)) != srs_success) {