mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
RTC: Never copy the packet for hijack.
This commit is contained in:
parent
81db13f27f
commit
44c85cc3d2
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) {
|
||||
// TODO: FIXME: copy pkt by hijacker itself
|
||||
if ((err = _srs_rtc_hijacker->on_rtp_packet(session_, this, req, pkt->copy())) != srs_success) {
|
||||
if ((err = _srs_rtc_hijacker->on_rtp_packet(session_, this, req, pkt)) != srs_success) {
|
||||
return srs_error_wrap(err, "on rtp packet");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue