From a28a932b84893ca8b32a2b48fc0ffe44bf9ad5ac Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Mon, 24 Jun 2019 08:53:13 +0300 Subject: [PATCH] Give SSRC to RTCP when creating the object --- src/conn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conn.cc b/src/conn.cc index 0c509cb..bd4baa2 100644 --- a/src/conn.cc +++ b/src/conn.cc @@ -140,7 +140,7 @@ void kvz_rtp::connection::fill_rtp_header(uint8_t *buffer, uint32_t timestamp) rtp_error_t kvz_rtp::connection::create_rtcp(std::string dst_addr, int dst_port, int src_port) { - if ((rtcp_ = new kvz_rtp::rtcp(reader_)) == nullptr) { + if ((rtcp_ = new kvz_rtp::rtcp(rtp_ssrc_, reader_)) == nullptr) { LOG_ERROR("Failed to allocate RTCP instance!"); return RTP_MEMORY_ERROR; }