Give SSRC to RTCP when creating the object

This commit is contained in:
Aaro Altonen 2019-06-24 08:53:13 +03:00
parent 18ef00c99e
commit a28a932b84
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}