mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine code
This commit is contained in:
parent
1114c6a46a
commit
87ffb7071a
2 changed files with 5 additions and 5 deletions
|
@ -3128,8 +3128,8 @@ srs_error_t SrsRtcConnection::create_publisher(SrsRequest* req, SrsRtcStreamDesc
|
|||
}
|
||||
|
||||
if (_srs_rtc_hijacker) {
|
||||
if ((err = _srs_rtc_hijacker->on_before_publish(this, publisher, req)) != srs_success) {
|
||||
return srs_error_wrap(err, "on before publish");
|
||||
if ((err = _srs_rtc_hijacker->on_create_publish(this, publisher, req)) != srs_success) {
|
||||
return srs_error_wrap(err, "on create publish");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue