mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +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;
|
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 a new issue