mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
RTC: Never copy the packet for hijack.
This commit is contained in:
parent
d01a429c13
commit
43d4240a30
1 changed files with 1 additions and 2 deletions
|
@ -1224,8 +1224,7 @@ srs_error_t SrsRtcPublishStream::do_on_rtp(char* plaintext, int nb_plaintext)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_srs_rtc_hijacker) {
|
if (_srs_rtc_hijacker) {
|
||||||
// TODO: FIXME: copy pkt by hijacker itself
|
if ((err = _srs_rtc_hijacker->on_rtp_packet(session_, this, req, pkt)) != srs_success) {
|
||||||
if ((err = _srs_rtc_hijacker->on_rtp_packet(session_, this, req, pkt->copy())) != srs_success) {
|
|
||||||
return srs_error_wrap(err, "on rtp packet");
|
return srs_error_wrap(err, "on rtp packet");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue