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:
parent
a98187580f
commit
ffeb3a8c46
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue