Skip to content

Commit

Permalink
RTC: Never copy the packet for hijack.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 8, 2021
1 parent d01a429 commit 43d4240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trunk/src/app/srs_app_rtc_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 43d4240

Please sign in to comment.