RTC: Refine code
This commit is contained in:
parent
a98187580f
commit
ffeb3a8c46
|
|
@ -1875,10 +1875,7 @@ srs_error_t SrsRtcConnection::initialize(SrsRtcStream* source, SrsRequest* r, bo
|
||||||
|
|
||||||
username_ = username;
|
username_ = username;
|
||||||
is_publisher_ = is_publisher;
|
is_publisher_ = is_publisher;
|
||||||
|
req = r->copy();
|
||||||
if (r) { //TODO: FIXME: SrsRequest owner by Stream, not connection
|
|
||||||
req = r->copy();
|
|
||||||
}
|
|
||||||
|
|
||||||
SrsSessionConfig* cfg = &local_sdp.session_config_;
|
SrsSessionConfig* cfg = &local_sdp.session_config_;
|
||||||
if ((err = transport_->initialize(cfg)) != srs_success) {
|
if ((err = transport_->initialize(cfg)) != srs_success) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user